From cdb79bca0737bc6c9e39cad2076d392387bc0ff0 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Fri, 20 Jul 2007 06:42:03 +0000 Subject: [PATCH] untested git support --- baz-update-config | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.30.2