diff options
author | Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com> | 2023-06-04 11:28:26 +1000 |
---|---|---|
committer | Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com> | 2023-06-04 11:28:26 +1000 |
commit | 5889b758b390cba1b01db6684eb83760fd7fb58c (patch) | |
tree | 8091b7a976dccb34f84c5a26dd2a7660d213a03c /repository.go | |
parent | d37c8b92eb84a2b66413262c33812236b91422f9 (diff) | |
download | go-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.go | 1 |
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{ |