[PATCH util-modular 3/4] build.sh: add GITCLONEOPTS for git clone options

Peter Hutterer peter.hutterer at who-t.net
Mon Aug 21 00:10:24 UTC 2017


Because this is Australia and --depth 1 is a lifesaver. One without a snazzy
red-yellow cap though.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 build.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/build.sh b/build.sh
index 9cb6a85..a1260ad 100755
--- a/build.sh
+++ b/build.sh
@@ -137,6 +137,8 @@
 #               Each module/components is invoked with --quite
 #   GITROOT     Source code repository path [git://anongit.freedesktop.org/git]
 #               Optional when using --clone to update source code before building
+#   GITCLONEOPTS Options passed to git clone.
+#               Optional when using --clone to update source code before building
 #   CONFFLAGS   Configure options to pass to all Autoconf configure scripts
 #               Refer to 'configure --help' from any module/components
 #
@@ -529,7 +531,7 @@ clone() {
     GITROOT=${GITROOT:="git://anongit.freedesktop.org/git"}
 
     if [ ! -d "$DIR" ]; then
-        git clone "$GITROOT/$BASEDIR$DIR" "$DIR"
+        git clone $GITCLONEOPTS "$GITROOT/$BASEDIR$DIR" "$DIR"
         if [ $? -ne 0 ]; then
             echo "Failed to clone $module${component:+/}$component. Ignoring."
             clonefailed_components="$clonefailed_components $module${component:+/}$component"
-- 
2.13.5



More information about the xorg-devel mailing list