diff options
author | Thomas Vander Stichele <thomas (at) apestaart (dot) org> | 2012-01-25 14:20:52 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-05-30 12:26:47 +0200 |
commit | 9e6e390638ef670617cb41f034e6340eff2d8cee (patch) | |
tree | e734787234ab25ad265dc3706f6522e34065dcfb | |
parent | f29fa46acc19a2aa1ea656dbdf366656b1557b4b (diff) | |
download | gstreamer-common-9e6e390638ef670617cb41f034e6340eff2d8cee.tar.gz |
update-common: read the url to push to from config
-rwxr-xr-x | update-common | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/update-common b/update-common index 6bafa37..467bcf0 100755 --- a/update-common +++ b/update-common @@ -17,6 +17,7 @@ # network usage. BRANCH=0.10 reference=~/gst +PUSHURL=ssh://git.freedesktop.org/git/gstreamer set -e set -x @@ -32,11 +33,17 @@ for module in $modules do cd $dir if test -e $reference/$module/.git ; then + pushd $reference/$module + PUSHURL=`git config remote.origin.url | sed 's@\(git/gstreamer\).*@\1@'` + popd git clone --reference $reference/$module/.git --shared ssh://git.freedesktop.org/git/gstreamer/$module elif test -e $topdir/$module/.git ; then - git clone --reference $topdir/$module/.git --shared ssh://git.freedesktop.org/git/gstreamer/$module + pushd $topdir/$module + PUSHURL=`git config remote.origin.url | sed 's@\(git/gstreamer\).*@\1@'` + popd + git clone --reference $topdir/$module/.git --shared $PUSHURL/$module else - git clone ssh://git.freedesktop.org/git/gstreamer/$module + git clone $PUSHURL/$module fi cd $dir/$module |