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 39b670765b1f338590eba931989a8176cd1b677e
parent 43b7ee60cad6fd6ec52dbb04b1b78dd120b5950b
Author: lash <dev@holbrook.no>
Date:   Mon, 24 Jan 2022 22:59:37 +0000

Enable bare checkouts by default

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

diff --git a/gitstart.sh b/gitstart.sh @@ -2,7 +2,7 @@ if [ ! -z $1 ]; then pushd $1 fi -if [ -z GITREFRESH_CHECKOUT ]; then +if [ -z "$GITREFRESH_CHECKOUT" ]; then gitargs='--bare' fi @@ -21,7 +21,7 @@ while IFS= read -r repo; do >&2 echo "folder $basename_git already exists, skipping" continue fi - echo "clone $url to $basename_git" + echo "clone $url $gitargs to $basename_git" git clone $gitargs $url $basename_git done