]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3903-stash.sh
Merge branch 'jc/fail-stash-to-store-non-stash'
[thirdparty/git.git] / t / t3903-stash.sh
index 0b3dfeaea20048426be4d032dd6dc7e66359dc67..30b64260a8a943305d6d798deda056ec6b9617c2 100755 (executable)
@@ -931,6 +931,10 @@ test_expect_success 'store called with invalid commit' '
        test_must_fail git stash store foo
 '
 
+test_expect_success 'store called with non-stash commit' '
+       test_must_fail git stash store HEAD
+'
+
 test_expect_success 'store updates stash ref and reflog' '
        git stash clear &&
        git reset --hard &&