author | Junio C Hamano <gitster@pobox.com> | |
Fri, 6 Feb 2009 03:40:41 +0000 (19:40 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 6 Feb 2009 03:40:41 +0000 (19:40 -0800) |
* js/maint-remote-remove-mirror:
builtin-remote: make rm operation safer in mirrored repository
builtin-remote: make rm() use properly named variable to hold return value
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 | patch | | diff1 | | diff2 | | blob | history |
t/t5505-remote.sh | patch | | diff1 | | diff2 | | blob | history |
diff --cc builtin-remote.c
index abc8dd8389be4a51b467b4f6d4f74e2037d65423,07cfdac46446dcffa8d48ba962816440526e7ebf..db18bcfc97f0739c2e77164dc0222148a44c67a6
--- 1/builtin-remote.c
--- 2/builtin-remote.c
+++ b/builtin-remote.c
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);
diff --cc t/t5505-remote.sh
Simple merge