diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-06-18 10:39:17 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-06-18 10:39:17 -0700 |
| commit | da4e4a65a27ca912c3f48289acf9ff7a67476c3f (patch) | |
| tree | f8523544be8420fd7da3c440d7ff66220f46307f /git-rebase.sh | |
| parent | d978ead4c3933425f54142f2c3fab7f5071e36ef (diff) | |
| parent | ef52aafa0f8b1d34f2ecd9b58f2198711c87cab3 (diff) | |
| download | git-da4e4a65a27ca912c3f48289acf9ff7a67476c3f.tar.gz | |
Merge branch 'maint'
* maint:
http.c: fix compiling with libcurl 7.9.2
import-tars: support symlinks
pull, rebase: simplify to use die()
Diffstat (limited to 'git-rebase.sh')
| -rwxr-xr-x | git-rebase.sh | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/git-rebase.sh b/git-rebase.sh index b83fd3f970..334629fc97 100755 --- a/git-rebase.sh +++ b/git-rebase.sh @@ -168,10 +168,8 @@ run_pre_rebase_hook () { if test -z "$OK_TO_SKIP_PRE_REBASE" && test -x "$GIT_DIR/hooks/pre-rebase" then - "$GIT_DIR/hooks/pre-rebase" ${1+"$@"} || { - echo >&2 "The pre-rebase hook refused to rebase." - exit 1 - } + "$GIT_DIR/hooks/pre-rebase" ${1+"$@"} || + die "The pre-rebase hook refused to rebase." fi } @@ -359,8 +357,7 @@ fi # The tree must be really really clean. if ! git update-index --ignore-submodules --refresh; then - echo >&2 "cannot rebase: you have unstaged changes" - exit 1 + die "cannot rebase: you have unstaged changes" fi diff=$(git diff-index --cached --name-status -r --ignore-submodules HEAD --) case "$diff" in |
