chiark
/
gitweb
/
~cjwatson
/
bin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
499cabb
)
untested git support
author
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Fri, 20 Jul 2007 06:42:03 +0000
(06:42 +0000)
committer
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Fri, 20 Jul 2007 06:42:03 +0000
(06:42 +0000)
baz-update-config
patch
|
blob
|
history
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