diff options
author | David Turner <dturner@twopensource.com> | 2015-07-27 18:57:08 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-07-28 11:46:46 -0700 |
commit | d0ab058498cf3f1862de76b419abc0b67fabbd83 (patch) | |
tree | 08f04f7451dd8104b1e085238932b90fc66cf31d /t/t3903-stash.sh | |
parent | 86b601c5d89f3002e205ec34625011d256e7733f (diff) | |
download | git-d0ab058498cf3f1862de76b419abc0b67fabbd83.tar.gz |
tests: remove some direct access to .git/logsdt/reflog-tests
Alternate refs backends might store reflogs somewhere other than
.git/logs. Change most test code that directly accesses .git/logs to
instead use git reflog commands.
There are still a few tests which need direct access to reflogs: to
check reflog permissions, to manually create reflogs from scratch, to
save/restore reflogs, to check the format of raw reflog data, and to
remove not just reflog contents, but the reflogs themselves. All cases
which don't need direct access have been modified.
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3903-stash.sh')
-rwxr-xr-x | t/t3903-stash.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3903-stash.sh b/t/t3903-stash.sh index f5f18b7d21..2142c1fa92 100755 --- a/t/t3903-stash.sh +++ b/t/t3903-stash.sh @@ -672,7 +672,7 @@ test_expect_success 'store updates stash ref and reflog' ' ! grep quux bazzy && git stash store -m quuxery $STASH_ID && test $(cat .git/refs/stash) = $STASH_ID && - grep $STASH_ID .git/logs/refs/stash && + git reflog --format=%H stash| grep $STASH_ID && git stash pop && grep quux bazzy ' |