Code

reflogs: clear flags properly in corner case
[git.git] / reflog-walk.c
index caba4f743f2dcc1cf7046cec294f242b2af19052..0cf2f7dbad8b7662f4cdd08f398f7fe1ab874d8e 100644 (file)
@@ -239,7 +239,6 @@ void fake_reflog_parent(struct reflog_walk_info *info, struct commit *commit)
 
        commit->parents = xcalloc(sizeof(struct commit_list), 1);
        commit->parents->item = commit_info->commit;
-       commit->object.flags &= ~(ADDED | SEEN | SHOWN);
 }
 
 void get_reflog_selector(struct strbuf *sb,