diff --git a/builtin/remote.c b/builtin/remote.c
index 8424152269e309cb86e4ff530b9feacc23fc17a6..1fb441c964ba4942876865c3d84d9b49d9e5d8f8 100644 (file)
--- a/builtin/remote.c
+++ b/builtin/remote.c
if (mirror && master)
die("specifying a master branch makes no sense with --mirror");
- if (mirror && track.nr)
- die("specifying branches to track makes no sense with --mirror");
+ if (mirror && !(mirror & MIRROR_FETCH) && track.nr)
+ die("specifying branches to track makes sense only with fetch mirrors");
name = argv[0];
url = argv[1];
url = states.remote->url;
url_nr = states.remote->url_nr;
}
- for (i=0; i < url_nr; i++)
+ for (i = 0; i < url_nr; i++)
printf(" Push URL: %s\n", url[i]);
if (!i)
printf(" Push URL: %s\n", "(no URL)");