From: Junio C Hamano Date: Fri, 13 Mar 2009 04:45:56 +0000 (-0700) Subject: Merge branch 'js/maint-1.6.1-remote-remove-mirror' into maint-1.6.1 X-Git-Tag: v1.6.2.1~1^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2f5bfa7c7f271f2b7709c2822436178e2a216027;p=git.git Merge branch 'js/maint-1.6.1-remote-remove-mirror' into maint-1.6.1 * 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 --- 2f5bfa7c7f271f2b7709c2822436178e2a216027 diff --cc builtin-remote.c index abc8dd838,07cfdac46..db18bcfc9 --- a/builtin-remote.c +++ b/builtin-remote.c @@@ -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);