Replace unsetenv() and setenv() with older putenv().
[gitweb.git] / 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
        ;;