Use the final_oid_fn to finalize hashing of object IDs
[alt-git.git] / t / t3908-stash-in-worktree.sh
blob2b2b366ef94b7ca429416d81cc4858201658d3cb
1 #!/bin/sh
3 # Copyright (c) 2019 Johannes E Schindelin
6 test_description='Test git stash in a worktree'
8 . ./test-lib.sh
10 test_expect_success 'setup' '
11 test_commit initial &&
12 git worktree add wt &&
13 test_commit -C wt in-worktree
16 test_expect_success 'apply in subdirectory' '
17 mkdir wt/subdir &&
19 cd wt/subdir &&
20 echo modified >../initial.t &&
21 git stash &&
22 git stash apply >out
23 ) &&
24 grep "\.\.\/initial\.t" wt/subdir/out
27 test_done