git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH(amend)] Really run "git-clean -n" in test

From
MSMichael Spang <mspang@uwaterloo.ca>
Date
May 6, 2007, 19:08 UTC
Message-ID
<463E27BC.5060604@uwaterloo.ca>
In-Reply-To
<463E19C4.8010601@uwaterloo.ca>
Signed-off-by: Michael Spang <mspang@uwaterloo.ca>
---
Whoops.
 t/t7300-clean.sh |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index 1fb3850..1ada8da 100755
--- a/t/t7300-clean.sh
+++ b/t/t7300-clean.sh
@@ -125,14 +125,15 @@ test_expect_success \
 
 test_expect_failure \
     'clean.requireForce' \
-    "mkdir -p build docs &&
-    touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
-    git-config clean.requireForce true &&
+    "git-config clean.requireForce true &&
     git-clean"
 
 test_expect_success \
     'clean.requireForce and -n' \
-    "test -f Makefile &&
+    "mkdir -p build docs &&
+    touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
+    git-clean -n &&
+    test -f Makefile &&
     test -f README &&
     test -f src/part1.c &&
     test -f src/part2.c &&
Previous: Michael SpangNext: Junio C Hamano
Message 2 of 4 in “t7300: Basic tests for git-clean”
  1. 1/3 t7300: Basic tests for git-cleanMichael Spang, May 6, 2007
  2. Really run "git-clean -n" in testMichael Spang, May 6, 2007
  3. Junio C HamanoMay 6, 2007
  4. t7300: Basic tests for git-cleanMichael Spang, May 6, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.