scripts: "export VAR=VALUE" construct is not portable
[gitweb.git] / fetch-pack.c
index 1042448fa0b321e8826f0fdb69c89810c731cf5d..fab5e801755a9152aa19baf72b609052e1b32035 100644 (file)
@@ -507,7 +507,7 @@ static void filter_refs(struct fetch_pack_args *args,
                next = ref->next;
 
                if (!memcmp(ref->name, "refs/", 5) &&
-                   check_refname_format(ref->name + 5, 0))
+                   check_refname_format(ref->name, 0))
                        ; /* trash */
                else {
                        while (i < nr_sought) {