hooktimeout=30
rsynctimeout=900
rsyncssh='ssh -o batchmode=yes'
+mirror_gc_cmd='git gc --auto'
. $distrodir/mirror-settings
esac
actually () {
+ if [ "x$mirror_gc_cmd" != x ]; then
+ (
+ cd "$repos/$package.git"
+ $mirror_gc_cmd
+ )
+ fi
"${rsync[@]}" \
--timeout=$rsynctimeout \
-e "$rsyncssh" \
check-package-mirrorable () {
local repo=$repos/$package.git
- local mode=$(stat -c%a "$repo")
+ local mode; mode=$(stat -c%a "$repo")
case $mode in
*5) return 0 ;;
*0) return 1 ;;