]> git.ipfire.org Git - thirdparty/git.git/commitdiff
[PATCH] Be consistent in naming of remote heads
authorKris Shannon <kris.shannon@gmail.com>
Wed, 17 Aug 2005 03:02:16 +0000 (13:02 +1000)
committerJunio C Hamano <junkio@cox.net>
Wed, 17 Aug 2005 19:13:12 +0000 (12:13 -0700)
The _remote_name variable used for messages does not need the
refs/heads/ prefix included.

Signed-off-by: Kris Shannon <kris.shannon@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-parse-remote

index bfe7a906d9bfeb851134237ff7acdcac1d0b1f53..53c5842ef34a13c02073aaeab16a37b0dd79349b 100755 (executable)
@@ -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
        ;;