Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
test-lib: parse options in a for loop to keep $@ intact
[gitweb.git]
/
t
/
t7010-setup.sh
diff --git
a/t/t7010-setup.sh
b/t/t7010-setup.sh
index d8a7c798525728ddc8fc5fa9bd8335d8d1f0a710..0335a9a158ab507b2e37e4d7642a69ba4344c0ad 100755
(executable)
--- a/
t/t7010-setup.sh
+++ b/
t/t7010-setup.sh
@@
-103,14
+103,10
@@
test_expect_success 'git ls-files (relative #3)' '
git add a &&
(
cd a/b &&
- if git ls-files "../e/f"
- then
- echo Gaah, should have failed
- exit 1
- else
- : happy
- fi
- )
+ git ls-files "../e/f"
+ ) >current &&
+ echo ../e/f >expect &&
+ test_cmp expect current
'