forked from filipg/gonito
Use --single-branch
This commit is contained in:
parent
2f062a659d
commit
32ae5d7e1a
@ -221,6 +221,7 @@ rawClone tmpRepoDir repoCloningSpec chan = runWithChannel chan $ do
|
|||||||
let referenceBranch = repoSpecBranch $ cloningSpecReferenceRepo repoCloningSpec
|
let referenceBranch = repoSpecBranch $ cloningSpecReferenceRepo repoCloningSpec
|
||||||
runProg Nothing gitPath ["clone",
|
runProg Nothing gitPath ["clone",
|
||||||
"--progress",
|
"--progress",
|
||||||
|
"--single-branch",
|
||||||
"--branch",
|
"--branch",
|
||||||
T.unpack referenceBranch,
|
T.unpack referenceBranch,
|
||||||
T.unpack referenceUrl,
|
T.unpack referenceUrl,
|
||||||
|
@ -42,7 +42,7 @@ $case (appRepoScheme settings)
|
|||||||
\ (see <a href="@{YourAccountR}">your account</a>) if you want to have a repo hosted on Gonito.net, then:
|
\ (see <a href="@{YourAccountR}">your account</a>) if you want to have a repo hosted on Gonito.net, then:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
git clone #{appRepoHost settings}#{shownId}/#{challengeName challenge}
|
git clone --single-branch #{appRepoHost settings}#{shownId}/#{challengeName challenge}
|
||||||
|
|
||||||
<p>(Warning about empty repository is expected, don't worry about it.)
|
<p>(Warning about empty repository is expected, don't worry about it.)
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ $case (appRepoScheme settings)
|
|||||||
<p>Clone the repo:
|
<p>Clone the repo:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
git clone #{repoUrl repo}
|
git clone --single-branch #{repoUrl repo}
|
||||||
|
|
||||||
$maybe gitAnnexRemote <- (repoGitAnnexRemote repo)
|
$maybe gitAnnexRemote <- (repoGitAnnexRemote repo)
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
$if submissionIsPublic $ fsiSubmission submission
|
$if submissionIsPublic $ fsiSubmission submission
|
||||||
<div .subm-repo>publicly available at: <code>#{publicSubmissionRepo}</code> / branch <code>#{publicSubmissionBranch}</code>
|
<div .subm-repo>publicly available at: <code>#{publicSubmissionRepo}</code> / branch <code>#{publicSubmissionBranch}</code>
|
||||||
<div .subm-browsable>browsable at: <a href="#{browsableUrl}">#{browsableUrl}</a>
|
<div .subm-browsable>browsable at: <a href="#{browsableUrl}">#{browsableUrl}</a>
|
||||||
<div .subm-clonable>to get it run: <code>git clone #{publicSubmissionRepo} -b #{publicSubmissionBranch}</code>
|
<div .subm-clonable>to get it run: <code>git clone --single-branch #{publicSubmissionRepo} -b #{publicSubmissionBranch}</code>
|
||||||
<hr>
|
<hr>
|
||||||
|
Loading…
Reference in New Issue
Block a user