1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-10 06:26:13 +02:00

git-revert: Fix die before git-sh-setup defines it.

The code previously checked it's own name and called 'die' upon
an error.  However 'die' was not yet defined because git-sh-setup
had not been sourced yet.  Instead simply write the error message
to stderr and exit with an error as was originally desired.

Signed-off-by: Bob Proulx <bob@proulx.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Bob Proulx 2007-01-11 23:45:38 -07:00 committed by Junio C Hamano
parent fc41be3b2e
commit 397dfe67c7

View File

@ -16,7 +16,8 @@ case "$0" in
me=cherry-pick
USAGE='[--edit] [-n] [-r] [-x] <commit-ish>' ;;
* )
die "What are you talking about?" ;;
echo >&2 "What are you talking about?"
exit 1 ;;
esac
. git-sh-setup
require_work_tree