update repo cleaning scripts to clean submodules
This commit is contained in:
parent
91851e3ff5
commit
167ab856b1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user