git ops: add quiet switch for git push pull operations.

This commit is contained in:
netravnen 2018-12-19 14:08:29 +00:00
parent c93b4f6585
commit 4287f264f7
2 changed files with 5 additions and 5 deletions

View file

@ -8,7 +8,7 @@
*/
function fetchUpstreamMaster ()
{
echo shell_exec ("/usr/bin/git -C ../registry/ pull upstream master:master 2>&1");
echo shell_exec ("/usr/bin/git -C ../registry/ pull upstream master:master --quiet 2>&1");
}
/*
@ -19,7 +19,7 @@ function fetchUpstreamMaster ()
*/
function checkoutMaster ()
{
echo shell_exec ("/usr/bin/git -C ../registry/ o master 2>&1");
echo shell_exec ("/usr/bin/git -C ../registry/ o master --quiet 2>&1");
}
/*

View file

@ -3,8 +3,8 @@
ISO_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
# Commit latest version of ROA files
git add roa/*
git commit roa/* -m "Updated ROA files - $ISO_DATE"
git add roa/* --quiet
git commit roa/* -m "Updated ROA files - $ISO_DATE" --quiet
# Push repository to every remote configured
for REMOTE in $(git remote | egrep -v upstream | paste -sd " " -) ; do git push $REMOTE master:master ; done
for REMOTE in $(git remote | egrep -v upstream | paste -sd " " -) ; do git push $REMOTE master:master --quiet ; done