git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-fetch will leave a ref pointing to a tag
@ 2007-07-02 19:44 linux
  2007-07-02 21:14 ` Johannes Schindelin
  0 siblings, 1 reply; 8+ messages in thread
From: linux @ 2007-07-02 19:44 UTC (permalink / raw)
  To: git; +Cc: linux

I did this while trying to force a fast-forward merge (I wanted an
error message if I had changes to merge), and got a somewhat obscure
error message:

$ git branch temp tags/v2.6.22-rc6
$ git fetch . tags/v2.6.22-rc7:temp
$ git checkout temp
$ (make minor change)
$ git commit -a
fatal: 087ea061253277de2b27e82d8572a386835a1b7e is not a valid 'commit' object

git-fetch does odd things when handed a tag rather than a commit.
Also, should "git checkout" have complained?

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

end of thread, other threads:[~2007-07-03 13:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-02 19:44 git-fetch will leave a ref pointing to a tag linux
2007-07-02 21:14 ` Johannes Schindelin
2007-07-02 23:11   ` Junio C Hamano
2007-07-02 23:29     ` Johannes Schindelin
2007-07-03  3:23   ` linux
2007-07-03  4:18     ` Jeff King
2007-07-03 12:01       ` Johannes Schindelin
2007-07-03 13:59         ` 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).