submodule--helper: convert push_check to use struct refspec
[gitweb.git] / builtin / push.c
index fa65999b27567d0db639cea3883a8cd846241c23..00d81fb1ddf7dedc108f97960c9389525d66bd54 100644 (file)
@@ -80,8 +80,8 @@ static const char *map_refspec(const char *ref,
                return ref;
 
        if (remote->push) {
-               struct refspec query;
-               memset(&query, 0, sizeof(struct refspec));
+               struct refspec_item query;
+               memset(&query, 0, sizeof(struct refspec_item));
                query.src = matched->name;
                if (!query_refspecs(remote->push, remote->push_refspec_nr, &query) &&
                    query.dst) {