Skip to content

Commit f948cd1

Browse files
author
Vicent Martí
authored
Merge pull request #638 from jasonroelofs/dont-set-valid-flag-on-index
Don't default index entries to "VALID"
2 parents 5c47d3d + dd88837 commit f948cd1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/rugged/rugged_index.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,6 @@ static void rb_git_indexentry_toC(git_index_entry *entry, VALUE rb_entry)
607607
entry->flags &= ~GIT_IDXENTRY_VALID;
608608
if (rugged_parse_bool(val))
609609
entry->flags |= GIT_IDXENTRY_VALID;
610-
} else {
611-
entry->flags |= GIT_IDXENTRY_VALID;
612610
}
613611
}
614612

0 commit comments

Comments
 (0)