[PATCH] git-submodule should obey --quiet for subcommands

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jonathan del Strother
Date: Monday, September 21, 2009 - 9:46 am

Make sure that --quiet is passed through to git-clone & git-fetch.

Signed-off-by: Jonathan del Strother <jon.delStrother@bestbefore.tv>
---
clone & fetch are extremely noisy - perhaps something like the following?

 git-submodule.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/git-submodule.sh b/git-submodule.sh
index bfbd36b..1e1066e 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -106,9 +106,9 @@ module_clone()

 	if test -n "$reference"
 	then
-		git-clone "$reference" -n "$url" "$path"
+		git-clone ${GIT_QUIET:+-q} "$reference" -n "$url" "$path"
 	else
-		git-clone -n "$url" "$path"
+		git-clone ${GIT_QUIET:+-q} -n "$url" "$path"
 	fi ||
 	die "Clone of '$url' into submodule path '$path' failed"
 }
@@ -450,7 +450,7 @@ cmd_update()
 			if test -z "$nofetch"
 			then
 				(unset GIT_DIR; cd "$path" &&
-					git-fetch) ||
+					git-fetch ${GIT_QUIET:+-q}) ||
 				die "Unable to fetch in submodule path '$path'"
 			fi

-- 
1.6.5.rc1.44.ga1675.dirty
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] git-submodule should obey --quiet for subcommands, Jonathan del Strother, (Mon Sep 21, 9:46 am)
Re: [PATCH] git-submodule should obey --quiet for subcommands, Jonathan del Strother, (Wed Sep 23, 2:33 pm)
Re: [PATCH] git-submodule should obey --quiet for subcommands, Nanako Shiraishi, (Wed Sep 23, 10:31 pm)
Re: [PATCH] git-submodule should obey --quiet for subcommands, Jonathan del Strother, (Thu Sep 24, 12:34 am)
Re: [PATCH] git-submodule should obey --quiet for subcommands, Jonathan del Strother, (Thu Sep 24, 2:15 am)