Commit Diff


commit - 2969636801a678472e0c37a7d99b526651961210
commit + bfd1f6daa47c07c6796399a53b51437436cc81b5
blob - ea37d8d39483130b820a4643e44b25300d9b8a7a
blob + a6746588f304995cc44413ec00180316f86576d3
--- lib/commit_graph.c
+++ lib/commit_graph.c
@@ -406,6 +406,7 @@ add_node(struct got_commit_graph_node **new_node,
 		}
 		node->nparents++;
 	}
+	node->commit_timestamp = commit->committer_time;
 
 	err = got_object_idset_add(graph->node_ids, &node->id, node);
 	if (err) {
@@ -429,12 +430,6 @@ add_node(struct got_commit_graph_node **new_node,
 		}
 	}
 
-	node->commit_timestamp = commit->committer_time;
-	if (node->commit_timestamp == -1) {
-		free_node(node);
-		return got_error_from_errno();
-	}
-
 	if (changed)
 		add_node_to_iter_list(graph, node, child_node);