Merge branch 'js/maint-1.6.1-remote-remove-mirror' into maint-1.6.1
authorJunio C Hamano <gitster@pobox.com>
Fri, 13 Mar 2009 04:45:56 +0000 (21:45 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Mar 2009 04:45:56 +0000 (21:45 -0700)
* js/maint-1.6.1-remote-remove-mirror:
  builtin-remote: make rm operation safer in mirrored repository
  builtin-remote: make rm() use properly named variable to hold return value

1  2 
builtin-remote.c
t/t5505-remote.sh

index abc8dd8389be4a51b467b4f6d4f74e2037d65423,07cfdac46446dcffa8d48ba962816440526e7ebf..db18bcfc97f0739c2e77164dc0222148a44c67a6
@@@ -539,11 -362,14 +549,14 @@@ static int rm(int argc, const char **ar
                OPT_END()
        };
        struct remote *remote;
 -      struct strbuf buf;
 +      struct strbuf buf = STRBUF_INIT;
        struct known_remotes known_remotes = { NULL, NULL };
        struct string_list branches = { NULL, 0, 0, 1 };
-       struct branches_for_remote cb_data = { NULL, &branches, &known_remotes };
-       int i;
+       struct string_list skipped = { NULL, 0, 0, 1 };
+       struct branches_for_remote cb_data = {
+               NULL, &branches, &skipped, &known_remotes
+       };
+       int i, result;
  
        if (argc != 2)
                usage_with_options(builtin_remote_usage, options);
Simple merge