gitrefresh

Easily export, reinitialize and update all git repositories in a file hierarchy
git clone git://git.defalsify.org/gitrefresh.git
Log | Files | Refs | README | LICENSE

commit 85bfec7a1011857ca4a78e7bb7ed8dfa9a4d046d
parent 6021786b2ce64006ab30306fe341f6997a3f58cb
Author: lash <dev@holbrook.no>
Date:   Wed, 12 Jan 2022 22:51:57 +0000

Reduce update spam

Diffstat:
MROADMAP | 2++
Mgitrefresh.sh | 8++++----
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/ROADMAP b/ROADMAP @@ -2,3 +2,5 @@ - add debug logs * unscheduled - handle detached head state + - check for access issues per repo and skip (and report) if unauthorized + - skip ssh:// scheme diff --git a/gitrefresh.sh b/gitrefresh.sh @@ -36,19 +36,19 @@ esac #echo using repo dir $(realpath $t) repo_update() { - >&2 echo updating `pwd` - git remote update + #>&2 echo updating `pwd` + git remote update > /dev/null # if [ "$?" == "0" ]; then # if [[ $remote =~ ^git ]]; then # ... # fi # sed -e "s/^.*:\(.*\)$/\1/g" # fi - git fetch + git fetch > /dev/null if [ ! -z "$_pull" ]; then #branch=`git branch --show-current` branch=`git rev-parse --abbrev-ref HEAD` - git pull --ff-only origin $branch + git pull --ff-only origin $branch > /dev/null fi }