File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -17,24 +17,27 @@ test_expect_success \
17
17
' prepare repository with topic branch, and check cherry finds the 2 patches from there' \
18
18
' echo First > A &&
19
19
git update-index --add A &&
20
+ test_tick &&
20
21
git commit -m "Add A." &&
21
22
22
23
git checkout -b my-topic-branch &&
23
24
24
25
echo Second > B &&
25
26
git update-index --add B &&
27
+ test_tick &&
26
28
git commit -m "Add B." &&
27
29
28
- sleep 2 &&
29
30
echo AnotherSecond > C &&
30
31
git update-index --add C &&
32
+ test_tick &&
31
33
git commit -m "Add C." &&
32
34
33
35
git checkout -f master &&
34
36
rm -f B C &&
35
37
36
38
echo Third >> A &&
37
39
git update-index A &&
40
+ test_tick &&
38
41
git commit -m "Modify A." &&
39
42
40
43
expr "$(echo $(git cherry master my-topic-branch) )" : "+ [^ ]* + .*"
Original file line number Diff line number Diff line change 54
54
55
55
test_expect_success \
56
56
' diff removed symlink' \
57
- ' rm frotz &&
57
+ ' mv frotz frotz2 &&
58
58
git diff-index -M -p $tree > current &&
59
59
compare_diff_patch current expected'
60
60
64
64
65
65
test_expect_success \
66
66
' diff identical, but newly created symlink' \
67
- ' sleep 3 &&
68
- ln -s xyzzy frotz &&
67
+ ' ln -s xyzzy frotz &&
69
68
git diff-index -M -p $tree > current &&
70
69
compare_diff_patch current expected'
71
70
Original file line number Diff line number Diff line change @@ -554,8 +554,7 @@ test_debug 'gitk --all'
554
554
555
555
test_expect_success ' refresh the index before merging' '
556
556
git reset --hard c1 &&
557
- sleep 1 &&
558
- touch file &&
557
+ cp file file.n && mv -f file.n file &&
559
558
git merge c3
560
559
'
561
560
You can’t perform that action at this time.
0 commit comments