Commit Diff


commit - d1688ce08917f7071c7bbfc44ae27624c0a1efd8
commit + d9498b2018a8dfb3527a982ca140d9beb2e52dca
blob - 096c8f7fac1d8b3fd9d1ea2bc25096b07b9ee4ae
blob + a9bc81f2143f3ba6103c518d3ec19c092c0b5016
--- got/got.c
+++ got/got.c
@@ -625,6 +625,8 @@ print_commit(struct got_commit_object *commit, struct 
 		if (got_object_id_cmp(re->id, id) != 0)
 			continue;
 		name = got_ref_get_name(re->ref);
+		if (strcmp(name, GOT_REF_HEAD) == 0)
+			continue;
 		if (strncmp(name, "refs/", 5) == 0)
 			name += 5;
 		if (strncmp(name, "heads/", 6) == 0)