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 51bc04cdab868ac67b229ea9cb57a4b4271b2082
parent e06985802585eeed2ff7bbb66b183ef76b8378b6
Author: lash <dev@holbrook.no>
Date:   Fri, 14 Jan 2022 16:07:05 +0000

Correct inverted result check in fetch and update

Diffstat:
Mgitrefresh.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gitrefresh.sh b/gitrefresh.sh @@ -38,7 +38,7 @@ esac repo_update() { #>&2 echo updating `pwd` git remote update > /dev/null - if [ "$?" == "0" ]; then + if [ "$?" -gt "0" ]; then # if [[ $remote =~ ^git ]]; then # ... # fi @@ -47,7 +47,7 @@ repo_update() { return 1 fi git fetch > /dev/null - if [ "$?" == "0" ]; then + if [ "$?" -gt "0" ]; then >&2 echo "fetch failed in $(pwd)" return 1 fi