Commit 085d02fc authored by Oswald Buddenhagen's avatar Oswald Buddenhagen Committed by Oswald Buddenhagen
Browse files

optimization: use find -prune


no point in descending into the .git directories.

Change-Id: I6786ae611fe40498500e4260836c84cbe8359b39
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 74f1fd8c
No related merge requests found
Showing with 1 addition and 1 deletion
...@@ -19,7 +19,7 @@ if test -z "$root"; then ...@@ -19,7 +19,7 @@ if test -z "$root"; then
exit 1 exit 1
fi fi
cd "$root" || exit cd "$root" || exit
find -name '*.git' -type d | while read dir; do ( find -name '*.git' -type d -prune | while read dir; do (
echo "Entering $dir ..." echo "Entering $dir ..."
cd "$dir" || exit cd "$dir" || exit
find refs/changes -mindepth 1 -mtime +10 -delete find refs/changes -mindepth 1 -mtime +10 -delete
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment