aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorArieh Schneier <15041913+AriehSchneier@users.noreply.github.com>2023-06-04 11:28:26 +1000
committerArieh Schneier <15041913+AriehSchneier@users.noreply.github.com>2023-06-04 11:28:26 +1000
commit5889b758b390cba1b01db6684eb83760fd7fb58c (patch)
tree8091b7a976dccb34f84c5a26dd2a7660d213a03c /repository.go
parentd37c8b92eb84a2b66413262c33812236b91422f9 (diff)
downloadgo-git-5889b758b390cba1b01db6684eb83760fd7fb58c.tar.gz
git: Clone HEAD should not force master. Fixes #363
Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/repository.go b/repository.go
index 17fa5dd..6c3be2e 100644
--- a/repository.go
+++ b/repository.go
@@ -967,7 +967,6 @@ func (r *Repository) cloneRefSpec(o *CloneOptions) []config.RefSpec {
case o.SingleBranch && o.ReferenceName == plumbing.HEAD:
return []config.RefSpec{
config.RefSpec(fmt.Sprintf(refspecSingleBranchHEAD, o.RemoteName)),
- config.RefSpec(fmt.Sprintf(refspecSingleBranch, plumbing.Master.Short(), o.RemoteName)),
}
case o.SingleBranch:
return []config.RefSpec{