archive: support filtering paths with glob
[gitweb.git] / t / t7102-reset.sh
index 8d4b50d1b5816d69ab165119773a7ffc0c360c0a..ee117e2e727d2bcdc87053684f0c32486452a65e 100755 (executable)
@@ -535,4 +535,15 @@ test_expect_success 'reset with paths accepts tree' '
        git diff HEAD --exit-code
 '
 
+test_expect_success 'reset --mixed sets up work tree' '
+       git init mixed_worktree &&
+       (
+               cd mixed_worktree &&
+               test_commit dummy
+       ) &&
+       : >expect &&
+       git --git-dir=mixed_worktree/.git --work-tree=mixed_worktree reset >actual &&
+       test_cmp expect actual
+'
+
 test_done