# git # checkouts, and git will pull objects from there, decreasing
# network usage.
reference=~/gst
+PUSHURL=ssh://git.freedesktop.org/git/gstreamer
set -e
set -x
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
git submodule init