Skip to content

Commit 806f5ff

Browse files
committed
t3903-stash: Work around a racily-clean index that is not detected.
We still have the problem that sometimes the time returned by stat() is off by a second into the past. As a consequence, git cannot detect when a file was modified such that only the content changed but no other aspect of the meta-data that stat() retrieves. So we artificially delay the modification so that at least the timestamp is different from the one recorded in the index.
1 parent 42be8dd commit 806f5ff

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

t/t3903-stash.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ test_expect_success 'drop middle stash' '
154154
git reset --hard &&
155155
echo 8 >file &&
156156
git stash &&
157+
sleep 1 &&
157158
echo 9 >file &&
158159
git stash &&
159160
git stash drop stash@{1} &&

0 commit comments

Comments
 (0)