Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t4038-diff-combined: quote paths with whitespace
author
Todd Zullinger
<tmz@pobox.com>
Sun, 17 Mar 2019 23:02:39 +0000
(19:02 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 18 Mar 2019 06:52:36 +0000
(15:52 +0900)
d76ce4f734
("log,diff-tree: add --combined-all-paths option",
2019-02-07) added tests for files containing tabs.
When the tests are run with bash, the lack of quoting during the file
setup causes 'ambiguous redirect' errors.
Signed-off-by: Todd Zullinger <tmz@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4038-diff-combined.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
0e94f7a
)
diff --git
a/t/t4038-diff-combined.sh
b/t/t4038-diff-combined.sh
index 07b49f6d6d9ef93476af2af10fe694d2f971b59d..d4afe125548bed5e7e881d2bb4ae54f237968f28 100755
(executable)
--- a/
t/t4038-diff-combined.sh
+++ b/
t/t4038-diff-combined.sh
@@
-480,18
+480,18
@@
test_expect_success FUNNYNAMES 'setup for --combined-all-paths with funny names'
git branch side1d &&
git branch side2d &&
git checkout side1d &&
git branch side1d &&
git branch side2d &&
git checkout side1d &&
- test_seq 1 10 >
$(printf "file\twith\ttabs")
&&
+ test_seq 1 10 >
"$(printf "file\twith\ttabs")"
&&
git add file* &&
git commit -m with &&
git checkout side2d &&
git add file* &&
git commit -m with &&
git checkout side2d &&
- test_seq 1 9 >
$(printf "i\tam\ttabbed")
&&
- echo ten >>
$(printf "i\tam\ttabbed")
&&
+ test_seq 1 9 >
"$(printf "i\tam\ttabbed")"
&&
+ echo ten >>
"$(printf "i\tam\ttabbed")"
&&
git add *tabbed &&
git commit -m iam &&
git checkout -b funny-names-mergery side1d &&
git merge --no-commit side2d &&
git rm *tabs &&
git add *tabbed &&
git commit -m iam &&
git checkout -b funny-names-mergery side1d &&
git merge --no-commit side2d &&
git rm *tabs &&
- echo eleven >>
$(printf "i\tam\ttabbed")
&&
+ echo eleven >>
"$(printf "i\tam\ttabbed")"
&&
git mv "$(printf "i\tam\ttabbed")" "$(printf "fickle\tnaming")" &&
git add fickle* &&
git commit
git mv "$(printf "i\tam\ttabbed")" "$(printf "fickle\tnaming")" &&
git add fickle* &&
git commit