summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc41be3)
raw | patch | inline | side by side (parent: fc41be3)
author | Bob Proulx <bob@proulx.com> | |
Fri, 12 Jan 2007 06:45:38 +0000 (23:45 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 12 Jan 2007 08:13:34 +0000 (00:13 -0800) |
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>
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>
git-revert.sh | patch | blob | history |
diff --git a/git-revert.sh b/git-revert.sh
index f9843c7c8ec4c3ae7e796fec801425e85dc1c73d..fcca3ebb90e7b72d5b494e907f1c12060a04287d 100755 (executable)
--- a/git-revert.sh
+++ b/git-revert.sh
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