Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
builtin-branch: use strbuf in delete_branches()
[gitweb.git]
/
builtin-remote.c
diff --git
a/builtin-remote.c
b/builtin-remote.c
index d032f25358e6c6c02ecdfc77bee5c240fb08c40a..14774e36c40cb079b52259b300cb58f6b94d0588 100644
(file)
--- a/
builtin-remote.c
+++ b/
builtin-remote.c
@@
-770,7
+770,7
@@
static int get_one_remote_for_update(struct remote *remote, void *priv)
{
struct string_list *list = priv;
if (!remote->skip_default_update)
- string_list_append(
xstrdup(remote->name)
, list);
+ string_list_append(
remote->name
, list);
return 0;
}