summaryrefslogtreecommitdiff
path: root/tests/reset/hard.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reset/hard.c')
-rw-r--r--tests/reset/hard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/reset/hard.c b/tests/reset/hard.c
index 86d4be2ed..88055adda 100644
--- a/tests/reset/hard.c
+++ b/tests/reset/hard.c
@@ -108,7 +108,7 @@ static void index_entry_init(git_index *index, int side, git_oid *oid)
memset(&entry, 0x0, sizeof(git_index_entry));
entry.path = "conflicting_file";
- entry.flags = (side << GIT_IDXENTRY_STAGESHIFT);
+ GIT_IDXENTRY_STAGE_SET(&entry, side);
entry.mode = 0100644;
git_oid_cpy(&entry.id, oid);