All of lore.kernel.org
 help / color / mirror / Atom feed
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

             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.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.