# [PATCH] remove a superfluous git-symbolic-ref call

2 messages from 2007-02-03 to 2007-02-03. Participants: Nicolas Pitre, Junio C Hamano.
Thread: https://gitlist.dev/t/6643

## Nicolas Pitre, 2007-02-03 20:46

Subject: [PATCH] remove a superfluous git-symbolic-ref call
Message-ID: <Pine.LNX.4.64.0702031544240.3021@xanadu.home>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0702031544240.3021%40xanadu.home

```
Signed-off-by Nicolas Pitre <nico@cam.org>
---

Found in 'next'.


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\""

```

## Junio C Hamano, 2007-02-03 20:58

Subject: Re: [PATCH] remove a superfluous git-symbolic-ref call
Message-ID: <7v1wl73qmv.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v1wl73qmv.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <Pine.LNX.4.64.0702031544240.3021@xanadu.home>

```
Thanks -- that was a mismerge.

```
