git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-clone: use cpio's --quiet flag

From
Jeff King <peff@peff.net>
Date
Aug 4, 2007, 07:03 UTC
Message-ID
<20070804070308.GA6493@coredump.intra.peff.net>

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
Next: Johannes Schindelin
Message 1 of 9 in “git-clone: use cpio's --quiet flag”
  1. git-clone: use cpio's --quiet flagJeff King, Aug 4, 2007
  2. Johannes SchindelinAug 4, 2007
  3. Jeff KingAug 4, 2007
  4. Junio C HamanoAug 4, 2007
  5. Jeff KingAug 4, 2007
  6. Junio C HamanoAug 4, 2007
  7. Jeff KingAug 5, 2007
  8. Junio C HamanoAug 5, 2007
  9. Jeff KingAug 5, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.