From: Andreas Politz <politza@hochschule-trier•de>
To: git@vger•kernel.org
Subject: git checkout exit value and post-commit hooks
Date: Tue, 14 Mar 2017 02:58:35 +0100 [thread overview]
Message-ID: <87y3w8k4ac.fsf@luca> (raw)
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
next reply other threads:[~2017-03-14 2:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-14 1:58 Andreas Politz [this message]
2017-03-14 6:00 ` git checkout exit value and post-commit hooks Junio C Hamano
2017-03-14 10:07 ` Andreas Politz
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=87y3w8k4ac.fsf@luca \
--to=politza@hochschule-trier$(echo .)de \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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