grep -O: Do not pass color sequences as filenames to pager
[gitweb.git] / builtin / receive-pack.c
index 8b5a4656ec6143436e1f1a6f1d589b1ee6d73001..5170abf2a02d915238bfb5a01e7a1223cdefb642 100644 (file)
@@ -534,7 +534,7 @@ static void check_aliased_updates(struct command *commands)
 
        for (cmd = commands; cmd; cmd = cmd->next) {
                struct string_list_item *item =
-                       string_list_append(cmd->ref_name, &ref_list);
+                       string_list_append(&ref_list, cmd->ref_name);
                item->util = (void *)cmd;
        }
        sort_string_list(&ref_list);