summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas (at) apestaart (dot) org>2012-01-25 14:26:17 +0100
committerThomas Vander Stichele <thomas (at) apestaart (dot) org>2012-01-25 14:26:17 +0100
commit12043938ef3de7cff4762e76b718c21a3f1dbfc6 (patch)
tree0ca10d9d195fe8c2117fd699bded4f448cdd146f
parent7fda5249ab56f0de09277df330780a3b90a2b306 (diff)
parentd4f33651dc6ded8aba160182749a1ea1797775d2 (diff)
Merge branch 'master' into 0.11
-rwxr-xr-xupdate-common11
1 files changed, 9 insertions, 2 deletions
diff --git a/update-common b/update-common
index 79460c3..10c8f71 100755
--- a/update-common
+++ b/update-common
@@ -17,6 +17,7 @@
# network usage.
BRANCH=0.11
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