update repo cleaning scripts to clean submodules

This commit is contained in:
Rick Olson 2014-06-05 17:13:07 -06:00
parent 91851e3ff5
commit 167ab856b1
2 changed files with 4 additions and 10 deletions

@ -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

@ -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