Merge branch 'es/test-lint-one-shot-export'
[gitweb.git] / sha1-name.c
index 60d9ef3c7e7108c859647656972c171cce4e7d7f..641ca12f91bad8f5aa5739ac92a3a9498e4d42e9 100644 (file)
@@ -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);
                }