From: Colin Watson Date: Fri, 20 Jul 2007 06:42:03 +0000 (+0000) Subject: untested git support X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=cdb79bca0737bc6c9e39cad2076d392387bc0ff0;p=bin.git untested git support --- diff --git a/baz-update-config b/baz-update-config index ed53853..7158885 100755 --- a/baz-update-config +++ b/baz-update-config @@ -42,6 +42,17 @@ for line in $(baz cat-config "$1" 2>/dev/null || cat "$1"); do esac fi ;; + git://*|git+*://*) + if [ -d "$DIR" ]; then + if [ ! -d "$DIR/.git" ]; then + echo "$DIR is not a git checkout; cannot update" >&2 + continue + fi + (cd "$DIR" && git pull "$VERSION") + else + git clone "$VERSION" "$DIR" + fi + ;; *) if [ -d "$DIR" ]; then if [ ! -d "$DIR/{arch}" ]; then