From 54595a0bfa90f18e929449622b0d263f7bdf8e6d Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Sat, 9 Oct 2021 14:44:37 +0200 Subject: [PATCH] Improve how-to for submitting (Issue with remote branches.) --- templates/challenge-how-to.hamlet | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/challenge-how-to.hamlet b/templates/challenge-how-to.hamlet index 4b87f32..6efefa4 100644 --- a/templates/challenge-how-to.hamlet +++ b/templates/challenge-how-to.hamlet @@ -52,6 +52,8 @@ $case (appRepoScheme settings) $nothing
       git clone --single-branch #{appRepoHost settings}#{shownId}/#{challengeName challenge}
+      # --single-branch was used to speed up the process, but now we need to fix remote branches
+      git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
 
   

(Warning about empty repository is expected, don't worry about it.) @@ -95,6 +97,8 @@ $case (appRepoScheme settings)

       git clone --single-branch #{repoUrl repo}
+      # --single-branch was used to speed up the process, but now we need to fix remote branches
+      git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
 
     $maybe gitAnnexRemote <- (repoGitAnnexRemote repo)