Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2021-12-09 08:08:30 +0300
committerJunio C Hamano <gitster@pobox.com>2021-12-10 00:33:13 +0300
commitc65744e7d7f512f3666da5964f0ace90325dd94a (patch)
treec0dbbd7387bc94c8ac31c94dd9673069fc3edbbc /t/t2501-cwd-empty.sh
parent00fcce285db3db48f85730a183421fdb488c14cc (diff)
clean: do not attempt to remove startup_info->original_cwd
Acked-by: Derrick Stolee <stolee@gmail.com> Acked-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2501-cwd-empty.sh')
-rwxr-xr-xt/t2501-cwd-empty.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/t2501-cwd-empty.sh b/t/t2501-cwd-empty.sh
index e4502d24d5..b1182390ba 100755
--- a/t/t2501-cwd-empty.sh
+++ b/t/t2501-cwd-empty.sh
@@ -230,8 +230,9 @@ test_incidental_untracked_dir_removal () {
}
test_expect_success 'clean does not remove cwd incidentally' '
- test_incidental_untracked_dir_removal failure \
- git -C .. clean -fd -e warnings . >warnings
+ test_incidental_untracked_dir_removal success \
+ git -C .. clean -fd -e warnings . >warnings &&
+ grep "Refusing to remove current working directory" warnings
'
test_expect_success 'stash does not remove cwd incidentally' '