File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,8 @@ test_expect_success 'add -u resolves unmerged paths' '
179
179
180
180
test_expect_success ' "add -u non-existent" should fail' '
181
181
test_must_fail git add -u non-existent &&
182
- ! (git ls-files | grep "non-existent")
182
+ git ls-files >actual &&
183
+ ! grep "non-existent" actual
183
184
'
184
185
185
186
test_done
Original file line number Diff line number Diff line change 68
68
cd "$git" &&
69
69
change=$(last_shelved_change) &&
70
70
git p4 unshelve $change &&
71
- git show refs/remotes/p4-unshelved/$change | grep -q "Further description" &&
71
+ git show refs/remotes/p4-unshelved/$change >actual &&
72
+ grep -q "Further description" actual &&
72
73
git cherry-pick refs/remotes/p4-unshelved/$change &&
73
74
test_path_is_file file2 &&
74
75
test_cmp file1 "$cli"/file1 &&
You can’t perform that action at this time.
0 commit comments