git.currentRef will resolve HEAD by default
This commit is contained in:
parent
170c6e99a2
commit
793bdb8265
@ -93,7 +93,7 @@ func cloneCommand(cmd *cobra.Command, args []string) {
|
||||
if cloneFlags.NoCheckout || cloneFlags.Bare {
|
||||
// If --no-checkout or --bare then we shouldn't check out, just fetch instead
|
||||
cfg.CurrentRemote = remote
|
||||
fetchRef("HEAD", filter)
|
||||
fetchRef(ref.Name, filter)
|
||||
} else {
|
||||
pull(remote, filter)
|
||||
err := postCloneSubmodules(args)
|
||||
|
Loading…
Reference in New Issue
Block a user