chiark
/
gitweb
/
~cjwatson
/
bin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
untested git support
[bin.git]
/
baz-update-config
diff --git
a/baz-update-config
b/baz-update-config
index ed53853825d19a6592fa44a8122f045f864e2a44..71588857cf05a071aa174c184359ebe5e9f722b2 100755
(executable)
--- 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
;;
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
*)
if [ -d "$DIR" ]; then
if [ ! -d "$DIR/{arch}" ]; then