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(-)
Show changes to git-clone.sh +2 −1
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