git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-clone: use cpio's --quiet flag
@ 2007-08-04  7:03 Jeff King
  2007-08-04 15:36 ` Johannes Schindelin
  0 siblings, 1 reply; 9+ messages in thread
From: Jeff King @ 2007-08-04  7:03 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Without this flag, cpio prints the number of blocks copied,
leading to the somewhat confusing git-clone output:

$ git-clone foo bar
Initialized empty Git repository in ...
0 blocks

Signed-off-by: Jeff King <peff@peff.net>
---
This is obviously on top of the jc/clone topic in next.

 git-clone.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/git-clone.sh b/git-clone.sh
index 4c9b1c9..ccfc316 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -281,7 +281,8 @@ yes)
 			fi
 		fi &&
 		cd "$repo" &&
-		find objects -depth -print | cpio -pumd$l "$GIT_DIR/" || exit 1
+		find objects -depth -print | cpio --quiet -pumd$l "$GIT_DIR/" \
+			|| exit 1
 	fi
 	git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD" || exit 1
 	;;
-- 
1.5.3.rc3.942.g536b2

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-08-05  9:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-04  7:03 [PATCH] git-clone: use cpio's --quiet flag Jeff King
2007-08-04 15:36 ` Johannes Schindelin
2007-08-04 16:04   ` Jeff King
2007-08-04 17:48     ` Junio C Hamano
2007-08-04 17:52       ` Jeff King
2007-08-04 18:27         ` Junio C Hamano
2007-08-05  8:06           ` Jeff King
2007-08-05  8:36             ` Junio C Hamano
2007-08-05  9:36               ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).