Revision ec583449067bab5b800ecc63926f35c9dae96fa1 authored by Johannes Schindelin on 11 March 2023, 20:29:12 UTC, committed by Johannes Schindelin on 17 April 2023, 19:16:07 UTC
Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent c96ecfe
t3908-stash-in-worktree.sh
#!/bin/sh
#
# Copyright (c) 2019 Johannes E Schindelin
#
test_description='Test git stash in a worktree'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success 'setup' '
test_commit initial &&
git worktree add wt &&
test_commit -C wt in-worktree
'
test_expect_success 'apply in subdirectory' '
mkdir wt/subdir &&
(
cd wt/subdir &&
echo modified >../initial.t &&
git stash &&
git stash apply >out
) &&
grep "\.\.\/initial\.t" wt/subdir/out
'
test_done
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...