[projects/git-slug] slug_watch-cron: domyślnie --quiet w 'git gc'
arekm
arekm at pld-linux.org
Tue May 12 15:09:25 CEST 2026
commit 791eb1775048aee9c6855a270e6c60e060852e54
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue May 12 14:03:12 2026 +0200
slug_watch-cron: domyślnie --quiet w 'git gc'
Cron wysyła stderr mailem; bez --quiet 'git gc' zaśmieca skrzynkę
postępem ('Expanding reachable commits...'), który dodatkowo skleja
się w jedną linię przez użycie \r. --quiet przed "\$@" pozwala
nadpisać flagę z crontaba.
server/slug_watch/slug_watch-cron | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/server/slug_watch/slug_watch-cron b/server/slug_watch/slug_watch-cron
index 258accf..6118df3 100644
--- a/server/slug_watch/slug_watch-cron
+++ b/server/slug_watch/slug_watch-cron
@@ -5,5 +5,5 @@ if [ -f /etc/sysconfig/slug_watch ]; then
fi
if [ -n "$REFREPODIR" ]; then
- git --git-dir="$REFREPODIR/Refs.git" gc "$@"
+ git --git-dir="$REFREPODIR/Refs.git" gc --quiet "$@"
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4a7e426b8f1a3571094b5dc89412bc49b8f29666
More information about the pld-cvs-commit
mailing list