X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7103-reset-bare.sh;h=afb55b3a463f79be83c0e3cc4a8aff8a0c6676be;hb=3af59e6f31c5304d476884b69b6b88dfd492812b;hp=68041df5f49e046c2b7ccd1f3a1c71071498da39;hpb=e2d2e383d87dcbcd296ca9f21f3c8b7ef853c928;p=git.git diff --git a/t/t7103-reset-bare.sh b/t/t7103-reset-bare.sh index 68041df5f..afb55b3a4 100755 --- a/t/t7103-reset-bare.sh +++ b/t/t7103-reset-bare.sh @@ -29,6 +29,12 @@ test_expect_success 'soft reset is ok' ' (cd .git && git reset --soft) ' +test_expect_success 'hard reset works with GIT_WORK_TREE' ' + mkdir worktree && + GIT_WORK_TREE=$PWD/worktree GIT_DIR=$PWD/.git git reset --hard && + test_cmp file worktree/file +' + test_expect_success 'setup bare' ' git clone --bare . bare.git && cd bare.git