Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t3908-stash-in-worktree.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t3908-stash-in-worktree.sh` 27 lines ยท 457 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2019 Johannes E Schindelin 4 # 5 6 test_description='Test git stash in a worktree' 7 8 . ./test-lib.sh 9 10 test_expect_success 'setup' ' 11 test_commit initial && 12 git worktree add wt && 13 test_commit -C wt in-worktree 14 ' 15 16 test_expect_success 'apply in subdirectory' ' 17 mkdir wt/subdir && 18 ( 19 cd wt/subdir && 20 echo modified >../initial.t && 21 git stash && 22 git stash apply >out 23 ) && 24 test_grep "\.\.\/initial\.t" wt/subdir/out 25 ' 26 27 test_done