The git:// protocol is problematic from a security perspective, as
it provides no authenticity of data. https:// also works better in
environments with restricted network connectivity.
Also add CLONE_OPTS to do shallow checkouts more easily.
https://bugzilla.gnome.org/show_bug.cgi?id=775110
# set to "ssh" if you have a developer account and ssh access
GIT_ACCESS="anongit"
+# extra clone options
+#CLONE_OPTS="--depth=1 --no-single-branch"
+
# re-use and reference local master branch checkout if one already exists
# (saves network bandwidth)
REUSE_EXISTING_MASTER_CHECKOUT="true"
fi
if test "$GIT_ACCESS" = "ssh"; then
- git clone $REF ssh://git.freedesktop.org/git/gstreamer/$m
+ git clone $CLONE_OPTS $REF ssh://git.freedesktop.org/git/gstreamer/$m
else
- git clone $REF git://anongit.freedesktop.org/gstreamer/$m
+ git clone $CLONE_OPTS $REF https://anongit.freedesktop.org/git/gstreamer/$m
fi
cd $m