From 167ab856b1ad5a74d274deb79138c141cac057ae Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Thu, 5 Jun 2014 17:13:07 -0600 Subject: [PATCH] update repo cleaning scripts to clean submodules --- script/clean-git-test-fixture | 10 ---------- script/clean-git-test-fixtures | 4 ++++ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/script/clean-git-test-fixture b/script/clean-git-test-fixture index 58455718..a5cacc66 100755 --- a/script/clean-git-test-fixture +++ b/script/clean-git-test-fixture @@ -11,13 +11,6 @@ if [ -z "$path" ] exit 1 fi -# check path ends in .git -if ! echo "$path" | grep -q '.git$' - then - echo "$(basename $0): $path is not a bare repository path" 1>&2 - exit 1 -fi - # make sure the repo we're cleaning already exists. if ! [ -d "$path" ] then @@ -59,8 +52,5 @@ do rm "$filepath" echo "Deleted file at $filepath" fi - else - # If there's nothing at $filepath, still echo something. - echo "Skipped nonexistent file at $filepath" fi done diff --git a/script/clean-git-test-fixtures b/script/clean-git-test-fixtures index 82e42d9d..5a415cb3 100755 --- a/script/clean-git-test-fixtures +++ b/script/clean-git-test-fixtures @@ -3,3 +3,7 @@ for p in commands/repos/*/ ; do script/clean-git-test-fixture $p done + +for p in commands/repos/*/modules/*/ ; do + script/clean-git-test-fixture $p +done