[PATCH 3/4] pack-objects: do not print usage when repacking
---
builtin/pack-objects.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 1742ea1..0bd8f3b 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -2585,7 +2585,7 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
base_name = argv[0];
argc--;
}
- if (pack_to_stdout != !base_name || argc)
+ if (!(repack_flags & REPACK_IN_PROGRESS) && (pack_to_stdout != !base_name || argc))
usage_with_options(pack_usage, pack_objects_options);
rp_av[rp_ac++] = "pack-objects";
--
1.8.4.rc1.25.g2793d0a