X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=bundle.c;h=ff97adcb891caf98dcc655e71e29eaec5dae0135;hb=00588bb5cd4a7ff5e2b1ded97d4459bfe6aad6eb;hp=717a712e9a6c125a684cd4ee39ce5cbfaecef91d;hpb=957f5db74fcf2a00260c8bdef4bf147b1b990914;p=git.git diff --git a/bundle.c b/bundle.c index 717a712e9..ff97adcb8 100644 --- a/bundle.c +++ b/bundle.c @@ -204,7 +204,6 @@ int create_bundle(struct bundle_header *header, const char *path, int i, ref_count = 0; char buffer[1024]; struct rev_info revs; - int read_from_stdin = 0; struct child_process rls; FILE *rls_fout; @@ -256,15 +255,8 @@ int create_bundle(struct bundle_header *header, const char *path, /* write references */ argc = setup_revisions(argc, argv, &revs, NULL); - for (i = 1; i < argc; i++) { - if (!strcmp(argv[i], "--stdin")) { - if (read_from_stdin++) - die("--stdin given twice?"); - read_revisions_from_stdin(&revs); - continue; - } - return error("unrecognized argument: %s'", argv[i]); - } + if (argc > 1) + return error("unrecognized argument: %s'", argv[1]); object_array_remove_duplicates(&revs.pending);