Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Change fetch_pack() and friends to take string_list arguments
[gitweb.git]
/
builtin
/
for-each-ref.c
diff --git
a/builtin/for-each-ref.c
b/builtin/for-each-ref.c
index afe83b984354913d348bf58de04c4b2bd5d307af..7f059c31dfbd11f77c891134ccc34cdc1f65bcb8 100644
(file)
--- a/
builtin/for-each-ref.c
+++ b/
builtin/for-each-ref.c
@@
-962,7
+962,9
@@
static int opt_parse_sort(const struct option *opt, const char *arg, int unset)
if (!arg) /* should --no-sort void the list ? */
return -1;
- *sort_tail = s = xcalloc(1, sizeof(*s));
+ s = xcalloc(1, sizeof(*s));
+ s->next = *sort_tail;
+ *sort_tail = s;
if (*arg == '-') {
s->reverse = 1;