Skip to content

Commit 432e93a

Browse files
spearcegitster
authored andcommitted
Cleanup unnecessary file modifications in t1400-update-ref
Kristian Høgsberg pointed out that the two file modifications we were doing during the 'creating initial files' step are not even used within the test suite. This was actually confusing as we do not even need these changes for the tests to pass. All that really matters here is the specific commit dates are used so that these appear in the branch's reflog, and that the dates are different so that the branch will update when asked and the reflog entry is also updated. There is no need for the file modification. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 6b1b40d commit 432e93a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

t/t1400-update-ref.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,9 @@ test_expect_success \
198198
GIT_AUTHOR_DATE="2005-05-26 23:41" \
199199
GIT_COMMITTER_DATE="2005-05-26 23:41" git-commit -F M -a &&
200200
h_OTHER=$(git rev-parse --verify HEAD) &&
201-
echo FIXED >F &&
202201
GIT_AUTHOR_DATE="2005-05-26 23:44" \
203202
GIT_COMMITTER_DATE="2005-05-26 23:44" git-commit --amend &&
204203
h_FIXED=$(git rev-parse --verify HEAD) &&
205-
echo TEST+FIXED >F &&
206204
echo Merged initial commit and a later commit. >M &&
207205
echo $h_TEST >.git/MERGE_HEAD &&
208206
GIT_AUTHOR_DATE="2005-05-26 23:45" \

0 commit comments

Comments
 (0)