projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca6c097
)
t7400: barf if git-submodule removes or replaces a file
author
Lars Hjemli
<hjemli@gmail.com>
Mon, 11 Jun 2007 19:12:21 +0000
(21:12 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 12 Jun 2007 08:06:21 +0000
(
01:06
-0700)
The test for an unmolested file wouldn't fail properly if the file had been
removed or replaced by something other than a regular file. This fixes it.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7400-submodule-basic.sh
patch
|
blob
|
history
diff --git
a/t/t7400-submodule-basic.sh
b/t/t7400-submodule-basic.sh
index 3940433b8f59196eff06dd24be24c9f54e7254ac..74fafceb716354075012b6714046415c4b3e5df6 100755
(executable)
--- a/
t/t7400-submodule-basic.sh
+++ b/
t/t7400-submodule-basic.sh
@@
-72,7
+72,7
@@
test_expect_success 'update should fail when path is used by a file' '
then
echo "[OOPS] update should have failed"
false
- elif test
-f lib && test
"$(cat lib)" != "hello"
+ elif test "$(cat lib)" != "hello"
then
echo "[OOPS] update failed but lib file was molested"
false