X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=git-rebase.sh;h=cbb0ea90ed410d5af68ce814b7fd93a90829f3ee;hb=9ecd3ada6dd7fe80109c48c48f30164c066d37ad;hp=d8e190302668ca352fd58cd052a677347a29cdcd;hpb=f2665ec9fa42b75d92d0301cff85362836c5729a;p=thirdparty%2Fgit.git diff --git a/git-rebase.sh b/git-rebase.sh index d8e1903026..cbb0ea90ed 100755 --- a/git-rebase.sh +++ b/git-rebase.sh @@ -482,6 +482,7 @@ case "$#" in then head_name="detached HEAD" else + echo >&2 "fatal: no such branch: $1" usage fi ;; @@ -513,7 +514,7 @@ then if test -z "$force_rebase" then # Lazily switch to the target branch if needed... - test -z "$switch_to" || git checkout "$switch_to" + test -z "$switch_to" || git checkout "$switch_to" -- say "Current branch $branch_name is up to date." exit 0 else