Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Fourth batch for 2.19 cycle
[gitweb.git]
/
sha1-name.c
diff --git
a/sha1-name.c
b/sha1-name.c
index 60d9ef3c7e7108c859647656972c171cce4e7d7f..641ca12f91bad8f5aa5739ac92a3a9498e4d42e9 100644
(file)
--- a/
sha1-name.c
+++ b/
sha1-name.c
@@
-1650,6
+1650,7
@@
static int get_oid_with_context_1(const char *name,
struct commit_list *list = NULL;
for_each_ref(handle_one_ref, &list);
+ head_ref(handle_one_ref, &list);
commit_list_sort_by_date(&list);
return get_oid_oneline(name + 2, oid, list);
}