[PATCH modular 2/2] Force progress on 'git clone'.

Trevor Woerner twoerner at gmail.com
Tue Oct 5 07:32:58 PDT 2010


From: Trevor Woerner <twoerner at gmail.com>

If its output is redirected, git clone will not show its progress. This
modification does not introduce any change when the output is not
redirected.

Signed-off-by: Trevor Woerner <twoerner at gmail.com>
---
 build.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/build.sh b/build.sh
index 1e31c2a..c45d3f3 100755
--- a/build.sh
+++ b/build.sh
@@ -202,7 +202,7 @@ clone() {
     GITROOT=${GITROOT:="git://anongit.freedesktop.org/git"}
 
     if [ ! -d "$DIR" ]; then
-        git clone "$GITROOT/$BASEDIR$DIR" "$DIR"
+        git clone --progress "$GITROOT/$BASEDIR$DIR" "$DIR"
         if [ $? -ne 0 ]; then
             echo "Failed to clone $1 module component $2. Ignoring."
             clonefailed_components="$clonefailed_components $1/$2"
-- 
1.7.3.1.50.g1e633



More information about the xorg-devel mailing list