diff options
author | Junio C Hamano <junkio@cox.net> | 2007-01-08 02:44:55 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-08 03:02:11 -0800 |
commit | 8d78b5af2376be533ed11b53b292bdf0f2e6173b (patch) | |
tree | e25e771069784f38b419c07981f6462a520bad61 /git-checkout.sh | |
parent | ead80606d47ed94aad958ee660f62cde00bb6018 (diff) | |
download | git-8d78b5af2376be533ed11b53b292bdf0f2e6173b.tar.gz |
git-checkout: fix branch name output from the command
When switching branches with "git checkout", we internally did $arg^0
(aka $arg^{commit}) suffix but there was no need to.
The improvement is easily visible in the change to an existing
test t/3200-branch.sh in this commit; it was expecting rather
ugly message.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-checkout.sh')
-rwxr-xr-x | git-checkout.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-checkout.sh b/git-checkout.sh index 69d0c1c43a..a309bf0a1a 100755 --- a/git-checkout.sh +++ b/git-checkout.sh @@ -53,7 +53,7 @@ while [ "$#" != "0" ]; do exit 1 fi new="$rev" - new_name="$arg^0" + new_name="$arg" if git-show-ref --verify --quiet -- "refs/heads/$arg" then branch="$arg" |