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)