@matheusbsbs / matheus-bagliano / commits / cc4c4f0ce2
Fork 0

symbolit-ref: fix resolve_ref conversion.

An earlier conversion accidentally hardcoded "HEAD" to be passed to resolve_ref(), thereby causing git-symbolic-ref command to always report where the HEAD points at, ignoring the command line parameter. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Sep 20, 2006 at 21:10 UTC cc4c4f0ce25cc3803197bc19c275fd6f59a2a511
1 file changed +1 -1
builtin-symbolic-ref.c
+1 -1
@@ -7,7 +7,7 @@ static const char git_symbolic_ref_usage[] =
7 static void check_symref(const char *HEAD)
8 {
9 unsigned char sha1[20];
10 - const char *refs_heads_master = resolve_ref("HEAD", sha1, 0);
10 + const char *refs_heads_master = resolve_ref(HEAD, sha1, 0);
11
12 if (!refs_heads_master)
13 die("No such ref: %s", HEAD);