Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
parse_object: try internal cache before reading object db
[gitweb.git]
/
builtin
/
show-branch.c
diff --git
a/builtin/show-branch.c
b/builtin/show-branch.c
index a1f148e48c70173b30893a9a92d53f1fffe19e76..a59e088cf59215d2d196dda530ad43ef0596b6be 100644
(file)
--- a/
builtin/show-branch.c
+++ b/
builtin/show-branch.c
@@
-789,7
+789,7
@@
int cmd_show_branch(int ac, const char **av, const char *prefix)
}
}
- head_p = resolve_ref("HEAD", head_sha1, 1, NULL);
+ head_p = resolve_ref
_unsafe
("HEAD", head_sha1, 1, NULL);
if (head_p) {
head_len = strlen(head_p);
memcpy(head, head_p, head_len + 1);