From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: [PATCH 1/3] repack: fix typo in max-pack-size option Date: Wed, 22 Jan 2014 20:27:52 -0500 Message-ID: <20140123012752.GA19472@sigill.intra.peff.net> References: <20140123012656.GC17254@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: git@vger.kernel.org, Stefan Beller , Siddharth Agarwal To: Junio C Hamano X-From: git-owner@vger.kernel.org Thu Jan 23 02:27:59 2014 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W695K-0007BN-Kj for gcvg-git-2@plane.gmane.org; Thu, 23 Jan 2014 02:27:59 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752557AbaAWB1z (ORCPT ); Wed, 22 Jan 2014 20:27:55 -0500 Received: from cloud.peff.net ([50.56.180.127]:37233 "HELO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752225AbaAWB1y (ORCPT ); Wed, 22 Jan 2014 20:27:54 -0500 Received: (qmail 5652 invoked by uid 102); 23 Jan 2014 01:27:54 -0000 Received: from c-71-63-4-13.hsd1.va.comcast.net (HELO sigill.intra.peff.net) (71.63.4.13) (smtp-auth username relayok, mechanism cram-md5) by peff.net (qpsmtpd/0.84) with ESMTPA; Wed, 22 Jan 2014 19:27:54 -0600 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Wed, 22 Jan 2014 20:27:52 -0500 Content-Disposition: inline In-Reply-To: <20140123012656.GC17254@sigill.intra.peff.net> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: When we see "--max-pack-size", we accidentally propagated this to pack-objects as "--max_pack_size", which does not work at all. Signed-off-by: Jeff King --- builtin/repack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/repack.c b/builtin/repack.c index ba66c6e..528725b 100644 --- a/builtin/repack.c +++ b/builtin/repack.c @@ -191,7 +191,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix) if (depth) argv_array_pushf(&cmd_args, "--depth=%u", depth); if (max_pack_size) - argv_array_pushf(&cmd_args, "--max_pack_size=%u", max_pack_size); + argv_array_pushf(&cmd_args, "--max-pack-size=%u", max_pack_size); if (no_reuse_delta) argv_array_pushf(&cmd_args, "--no-reuse-delta"); if (no_reuse_object) -- 1.8.5.2.500.g8060133