git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dror Livne <dror.livne@mobileye.com>
To: git@vger.kernel.org
Subject: Fetch and refs/remotes/<refname>/HEAD
Date: Mon, 3 Aug 2015 13:28:05 +0000 (UTC)	[thread overview]
Message-ID: <loom.20150803T151815-131@post.gmane.org> (raw)

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

             reply	other threads:[~2015-08-03 13:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03 13:28 Dror Livne [this message]
2015-08-09 23:23 ` Fetch and refs/remotes/<refname>/HEAD Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20150803T151815-131@post.gmane.org \
    --to=dror.livne@mobileye.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).