string_list: Fix argument order for string_list_lookup
[gitweb.git] / builtin / receive-pack.c
index bb34757d27f32fff8cb15a8f99d8295b5e38cb9e..8b5a4656ec6143436e1f1a6f1d589b1ee6d73001 100644 (file)
@@ -501,7 +501,7 @@ static void check_aliased_update(struct command *cmd, struct string_list *list)
        if (!(flag & REF_ISSYMREF))
                return;
 
-       if ((item = string_list_lookup(dst_name, list)) == NULL)
+       if ((item = string_list_lookup(list, dst_name)) == NULL)
                return;
 
        cmd->skip_update = 1;