git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Nicolas Pitre <nico@cam.org>
Date
Feb 3, 2007, 20:46 UTC
Message-ID
<Pine.LNX.4.64.0702031544240.3021@xanadu.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\""
Next: Junio C Hamano
Message 1 of 2 in “remove a superfluous git-symbolic-ref call”
  1. remove a superfluous git-symbolic-ref callNicolas Pitre, Feb 3, 2007
  2. Junio C HamanoFeb 3, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.