diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-10-23 23:56:37 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-10-23 23:56:37 +0300 |
commit | 626f689f7903b51342cf31ad3792ba5e9e41586d (patch) | |
tree | f0ce5154751f6b09c184a8f9f7b73ae23d2aee36 /t/t3903-stash.sh | |
parent | 755fb09163ec71b784b1bd9db5cb73de7a01d078 (diff) | |
parent | d9b6634589d5c59b49fd2fc41953469173a40ff5 (diff) |
Merge branch 'jc/fail-stash-to-store-non-stash'
Feeding "git stash store" with a random commit that was not created
by "git stash create" now errors out.
* jc/fail-stash-to-store-non-stash:
stash: be careful what we store
Diffstat (limited to 't/t3903-stash.sh')
-rwxr-xr-x | t/t3903-stash.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t3903-stash.sh b/t/t3903-stash.sh index 0b3dfeaea2..30b64260a8 100755 --- a/t/t3903-stash.sh +++ b/t/t3903-stash.sh @@ -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 && |