Commit Diff


commit - ca008b32c0b3792a048ac9f57dd80f37e90c9200
commit + 6b765bce16c2f40c9a89a5407ba1121bdb30b5ae
blob - 0575cacc5f4bccf001c9eba8bcb56f1b6c71ad16
blob + 5edca44ff870e002ec1401768f07b519ef6b5787
--- got/got.c
+++ got/got.c
@@ -392,7 +392,7 @@ print_commits(struct got_object *root_obj, struct got_
 	const struct got_error *err;
 	struct got_commit_graph *graph;
 	int ncommits, found_obj = 0;
-	int is_root_path = (strcmp(path, "/") != 0);
+	int is_root_path = (strcmp(path, "/") == 0);
 
 	err = got_commit_graph_open(&graph, root_id, first_parent_traversal,
 	    repo);