diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-03-06 14:54:00 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-06 14:54:00 -0800 |
commit | a4ae2e5a1c45890f5eeccb2d1989a15c07f99e3d (patch) | |
tree | fc464f383288f3bfdc78d1bb74dd4221a0c37323 /t/t7001-mv.sh | |
parent | Merge branch 'nm/tag-edit' (diff) | |
parent | mv: remove unneeded 'if (!show_only)' (diff) | |
download | tgif-a4ae2e5a1c45890f5eeccb2d1989a15c07f99e3d.tar.xz |
Merge branch 'sm/mv-dry-run-update'
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-x | t/t7001-mv.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t7001-mv.sh b/t/t7001-mv.sh index 6e5031f56f..d4e6485a26 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' |