From 7ea3177aec909e333bacccd00693f223997e2613 Mon Sep 17 00:00:00 2001 From: Alex Riesen Date: Tue, 18 Jul 2006 15:10:54 +0200 Subject: [PATCH] git-checkout.sh: print errors, otherwise it is not clear what happened Signed-off-by: Alex Riesen --- git-checkout.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/git-checkout.sh b/git-checkout.sh index 5613bfc..7b335e5 100755 --- a/git-checkout.sh +++ b/git-checkout.sh @@ -198,7 +198,7 @@ if [ "$?" -eq 0 ]; then mkdir -p $(dirname "$GIT_DIR/logs/refs/heads/$newbranch") touch "$GIT_DIR/logs/refs/heads/$newbranch" fi - git-update-ref -m "checkout: Created from $new_name" "refs/heads/$newbranch" $new || exit + git-update-ref -m "checkout: Created from $new_name" "refs/heads/$newbranch" $new || die "failed to create branch $newbranch" branch="$newbranch" fi [ "$branch" ] && -- 1.4.2.rc1.g22734