fetch tests: fetch <url> <spec> as well as fetch [<remote>]
[gitweb.git] / builtin / fetch.c
index 72085e30b90bec96932a0aa2260ff4bfd5a04b93..a7705bc1507763aced5920627dcb25c1877949f1 100644 (file)
@@ -1280,8 +1280,8 @@ static int fetch_one(struct remote *remote, int argc, const char **argv)
 
        if (prune < 0) {
                /* no command line request */
-               if (0 <= gtransport->remote->prune)
-                       prune = gtransport->remote->prune;
+               if (0 <= remote->prune)
+                       prune = remote->prune;
                else if (0 <= fetch_prune_config)
                        prune = fetch_prune_config;
                else