Signed-off-by Nicolas Pitre <nico@cam.org> ---
Found in 'next'.
Show changes to git-checkout.sh +0 −1
diff --git a/git-checkout.sh b/git-checkout.sh index 99b8779..dd0c2e9 100755 --- a/git-checkout.sh +++ b/git-checkout.sh @@ -265,7 +265,6 @@ if [ "$?" -eq 0 ]; then if test -n "$branch" then GIT_DIR="$GIT_DIR" git-symbolic-ref -m "checkout: moving to $branch" HEAD "refs/heads/$branch" - GIT_DIR="$GIT_DIR" git-symbolic-ref HEAD "refs/heads/$branch" if test -z "$quiet" then echo >&2 "Switched to${newbranch:+ a new} branch \"$branch\""