diff --git a/builtin/remote.c b/builtin/remote.c
index eb1229d68917131e98c4830fa184045f82fcedad..aa7111824d9d19086752b1bc28d10515389e0ac3 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];