threads / patch / 1544

patchBe consistent in naming of remote heads

Subject: [PATCH] Be consistent in naming of remote heads

## tl;dr

One message between Aug 17, 2005 and Aug 17, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Kris Shannon· Aug 17, 2005, 03:02 UTC · lore

The _remote_name variable used for messages does not need the refs/heads/ prefix included.

Signed-off-by: Kris Shannon <kris.shannon@gmail.com>
---
 git-parse-remote |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
9e7a4358b1792be188df87debf564e46acdb39d4
Show changes to git-parse-remote +1 −1
diff --git a/git-parse-remote b/git-parse-remote
--- a/git-parse-remote
+++ b/git-parse-remote
@@ -71,8 +71,8 @@ tag)
 	'')
 		_remote_head=HEAD ;;
 	*)
-		_remote_head="refs/heads/$_remote_head"
 		_remote_name="head '$_remote_head' of $_remote_name"
+		_remote_head="refs/heads/$_remote_head"
 		;;
 	esac
 	;;

← back to recent threads