git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git checkout exit value and post-commit hooks
@ 2017-03-14  1:58 Andreas Politz
  2017-03-14  6:00 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Politz @ 2017-03-14  1:58 UTC (permalink / raw)
  To: git


Hi,

the exit value of a `git checkout' seems to depend on the exit values of
the hooks it runs. This breaks for example `git bisect', as seen in the
following example.

$ mkdir gitbug
$ cd gitbug
$ git init
$ ln -s /bin/false .git/hooks/post-commit
$ git bisect start
$ git bisect reset
fatal: invalid reference: master
Could not check out original HEAD 'master'.
Try 'git bisect reset <commit>'.

-ap

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

end of thread, other threads:[~2017-03-14 10:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-14  1:58 git checkout exit value and post-commit hooks Andreas Politz
2017-03-14  6:00 ` Junio C Hamano
2017-03-14 10:07   ` Andreas Politz

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).