summaryrefslogtreecommitdiff
path: root/t/t7001-mv.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-03-22 21:24:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-22 21:24:25 (GMT)
commitc9bc2c5d4dd42a2448c63fe097fa8d43222dd5cb (patch)
tree4ddfa4fee0414b51ab9ddc0a82a22d36f9ea77ac /t/t7001-mv.sh
parent342215be59d3dc4b18db3d4a61fcfe4dc72149b7 (diff)
parent4cbe92fd41567e48ca60f4c810479b63ba8421fd (diff)
downloadgit-c9bc2c5d4dd42a2448c63fe097fa8d43222dd5cb.zip
git-c9bc2c5d4dd42a2448c63fe097fa8d43222dd5cb.tar.gz
git-c9bc2c5d4dd42a2448c63fe097fa8d43222dd5cb.tar.bz2
Merge branch 'sm/mv-dry-run-update' into maint
Code clean-up. * sm/mv-dry-run-update: mv: remove unneeded 'if (!show_only)' t7001: add test case for --dry-run
Diffstat (limited to 't/t7001-mv.sh')
-rwxr-xr-xt/t7001-mv.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t7001-mv.sh b/t/t7001-mv.sh
index 6e5031f..d4e6485 100755
--- a/t/t7001-mv.sh
+++ b/t/t7001-mv.sh
@@ -39,6 +39,12 @@ test_expect_success \
grep "^R100..*path1/COPYING..*path0/COPYING"'
test_expect_success \
+ 'mv --dry-run does not move file' \
+ 'git mv -n path0/COPYING MOVED &&
+ test -f path0/COPYING &&
+ test ! -f MOVED'
+
+test_expect_success \
'checking -k on non-existing file' \
'git mv -k idontexist path0'