t3903-stash: don't try to grep non-existing file
[gitweb.git] / t / t3903-stash.sh
index aefde7b1726bdc8d71d2b78e313e29daa2b31a24..6450bc669860f0f3e7d809514fc073013ffbf0b8 100755 (executable)
@@ -724,9 +724,9 @@ test_expect_success 'store updates stash ref and reflog' '
        git add bazzy &&
        STASH_ID=$(git stash create) &&
        git reset --hard &&
-       ! grep quux bazzy &&
+       test_path_is_missing bazzy &&
        git stash store -m quuxery $STASH_ID &&
-       test $(cat .git/refs/stash) = $STASH_ID &&
+       test $(git rev-parse stash) = $STASH_ID &&
        git reflog --format=%H stash| grep $STASH_ID &&
        git stash pop &&
        grep quux bazzy