{"thread":{"id":"8547","subject":"[PATCH 1/5] t7400: barf if git-submodule removes or replaces a file","startedAt":"2007-06-11T00:00:17Z","lastAt":"2007-06-11T00:00:17Z","messageCount":1,"participants":["Lars Hjemli"],"isPatch":true,"patchVersion":1,"patchTotal":5},"messages":[{"id":"44669","messageId":"op.ttqcyrco9pspc6@localhost","threadId":"8547","inReplyTo":null,"subject":"[PATCH 1/5] t7400: barf if git-submodule removes or replaces a file","fromName":"Lars Hjemli","fromEmail":"hjemli@gmail.com","sentAt":"2007-06-11T00:00:17Z","receivedAt":"2007-06-11T00:00:17Z","isPatch":true,"sender":{"key":"hjemli@gmail.com","avatar":null},"body":"The test for an unmolested file wouldn't fail properly if the file had been\nremoved or replaced by something other than a regular file. This fixes it.\n\nSigned-off-by: Lars Hjemli <hjemli@gmail.com>\n---\n  t/t7400-submodule-basic.sh |    2 +-\n  1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh\nindex 3940433..74fafce 100755\n--- a/t/t7400-submodule-basic.sh\n+++ b/t/t7400-submodule-basic.sh\n@@ -72,7 +72,7 @@ test_expect_success 'update should fail when path is used by a file' '\n  \tthen\n  \t\techo \"[OOPS] update should have failed\"\n  \t\tfalse\n-\telif test -f lib && test \"$(cat lib)\" != \"hello\"\n+\telif test \"$(cat lib)\" != \"hello\"\n  \tthen\n  \t\techo \"[OOPS] update failed but lib file was molested\"\n  \t\tfalse\n-- \n1.5.2.1.914.gbd3a7\n"}]}