threads / patch / 6643

patchremove a superfluous git-symbolic-ref call

Subject: [PATCH] remove a superfluous git-symbolic-ref call

## tl;dr

2 messages between Feb 3, 2007 and Feb 3, 2007. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Nicolas Pitre· Feb 3, 2007, 20:46 UTC · lore

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

← back to recent threads