diff --git a/Handler/Shared.hs b/Handler/Shared.hs index 9425027..46e7123 100644 --- a/Handler/Shared.hs +++ b/Handler/Shared.hs @@ -221,6 +221,7 @@ rawClone tmpRepoDir repoCloningSpec chan = runWithChannel chan $ do let referenceBranch = repoSpecBranch $ cloningSpecReferenceRepo repoCloningSpec runProg Nothing gitPath ["clone", "--progress", + "--single-branch", "--branch", T.unpack referenceBranch, T.unpack referenceUrl, diff --git a/templates/challenge-how-to.hamlet b/templates/challenge-how-to.hamlet index 2fcdeef..a77a5fa 100644 --- a/templates/challenge-how-to.hamlet +++ b/templates/challenge-how-to.hamlet @@ -42,7 +42,7 @@ $case (appRepoScheme settings) \ (see your account) if you want to have a repo hosted on Gonito.net, then:
-    git clone #{appRepoHost settings}#{shownId}/#{challengeName challenge}
+    git clone --single-branch #{appRepoHost settings}#{shownId}/#{challengeName challenge}
 
   

(Warning about empty repository is expected, don't worry about it.) @@ -55,7 +55,7 @@ $case (appRepoScheme settings)

Clone the repo:

-      git clone #{repoUrl repo}
+      git clone --single-branch #{repoUrl repo}
 
     $maybe gitAnnexRemote <- (repoGitAnnexRemote repo)
       
diff --git a/templates/query-result.hamlet b/templates/query-result.hamlet
index 65abef5..847a321 100644
--- a/templates/query-result.hamlet
+++ b/templates/query-result.hamlet
@@ -6,5 +6,5 @@
 $if submissionIsPublic $ fsiSubmission submission
   
publicly available at: #{publicSubmissionRepo} / branch #{publicSubmissionBranch}
browsable at: #{browsableUrl} -
to get it run: git clone #{publicSubmissionRepo} -b #{publicSubmissionBranch} +
to get it run: git clone --single-branch #{publicSubmissionRepo} -b #{publicSubmissionBranch}