From 32ae5d7e1ae42aaf7c2ef7161a1b37845850d9fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Grali=C5=84ski?= Date: Mon, 15 Oct 2018 14:19:20 +0200 Subject: [PATCH] Use --single-branch --- Handler/Shared.hs | 1 + templates/challenge-how-to.hamlet | 4 ++-- templates/query-result.hamlet | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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}