git.currentRef will resolve HEAD by default

This commit is contained in:
Brendan Forster 2017-09-19 15:56:48 +10:00
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)