git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fetch and refs/remotes/<refname>/HEAD
@ 2015-08-03 13:28 Dror Livne
  2015-08-09 23:23 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Dror Livne @ 2015-08-03 13:28 UTC (permalink / raw)
  To: git

I have noticed that when cloning a repository, I get a
refs/remotes/origin/HEAD symbolic ref.

On the other hand, when fetching a new remote, the remote HEAD is not set by
git-fetch (but can be added later by `git remote set-head ...')

I was under the impression that clone is equivalent to (at least) init+fetch.

Is there a rationale for that difference in behavior?

Dror Livne

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-09 23:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-03 13:28 Fetch and refs/remotes/<refname>/HEAD Dror Livne
2015-08-09 23:23 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).