Commit Diff


commit - 7bcb2ecfc09de529ad7b240ac847222205ea9a4a
commit + 7143d404530ce5fa5c9f2aea9d293d4de857d0e7
blob - f97925f4fe36537839d38c32cf1a8f7cdffb29ec
blob + 38d57624513d9fc98ccc71cf54de3b6da0dc79ef
--- got/got.c
+++ got/got.c
@@ -634,6 +634,8 @@ print_commit(struct got_commit_object *commit, struct 
 			continue;
 		if (strncmp(name, "refs/", 5) == 0)
 			name += 5;
+		if (strncmp(name, "got/", 4) == 0)
+			continue;
 		if (strncmp(name, "heads/", 6) == 0)
 			name += 6;
 		if (strncmp(name, "remotes/", 8) == 0)
blob - 9086729bcf1c9da133572ae170a74f7d089b3b81
blob + 64b0fb3e07eb9692849032563e898ee916cf2d00
--- tog/tog.c
+++ tog/tog.c
@@ -902,6 +902,8 @@ build_refs_str(char **refs_str, struct got_reflist_hea
 			continue;
 		if (strncmp(name, "refs/", 5) == 0)
 			name += 5;
+		if (strncmp(name, "got/", 4) == 0)
+			continue;
 		if (strncmp(name, "heads/", 6) == 0)
 			name += 6;
 		if (strncmp(name, "remotes/", 8) == 0)