Commit Diff


commit - 845785d4e40a5c6b45a348a9436e0c3357ed7622
commit + 3ffacbe1f62d0c6495612d17e918e95e40dba981
blob - 6610856d4f8e10333f6b532431409d43f3910f48
blob + c4ec3dd04f943b673b73fdd76c5b4a79354ee17d
--- tog/tog.c
+++ tog/tog.c
@@ -2988,7 +2988,7 @@ create_diff(struct tog_diff_view_state *s)
 
 		err = got_object_open_as_commit(&commit2, s->repo, s->id2);
 		if (err)
-			break;
+			goto done;
 		/* Show commit info if we're diffing to a parent/root commit. */
 		if (s->id1 == NULL) {
 			err =write_commit_info(s->id2, s->refs, s->repo, s->f);
@@ -3002,7 +3002,6 @@ create_diff(struct tog_diff_view_state *s)
 					    s->repo, s->f);
 					if (err)
 						goto done;
-					break;
 				}
 			}
 		}