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 c4eb2c477d52a8fc86d3411ca1a580d172dc1bcf
parent 7a84ea17f4145c9a7a1b61d66dbb990eaa53a665
Author: lash <dev@holbrook.no>
Date:   Sat, 22 Apr 2023 21:10:55 +0100

WIP git repo access checker

Diffstat:
Mgitrefresh.sh | 7+++++++
Mgitstart.sh | 2+-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/gitrefresh.sh b/gitrefresh.sh @@ -87,6 +87,13 @@ case "$cmd" in esac +#repo_check_access() { +# statuscode=`curl ${repo_url}/info/refs?service=git-upload-pack -i -w '%{http_code}' -o /dev/null` +# if [ "$statuscode" -ne "200" ]; then +# # skip +# fi +#} + repo_fetch_checkout() { git fetch > /dev/null 2>&1 if [ "$?" -gt "0" ]; then diff --git a/gitstart.sh b/gitstart.sh @@ -3,7 +3,7 @@ if [ ! -z $1 ]; then fi if [ -z "$GITREFRESH_CHECKOUT" ]; then - gitargs='--bare' + gitargs='--mirror' fi while IFS= read -r repo; do