On Wed, Mar 30, 2011 at 10:59:08AM -0400, Jeff King wrote: > All of that being said, I'm not sure your config makes sense: > > > [remote "origin"] > > fetch = +refs/heads/*:refs/remotes/origin/* > > url = ssh://myserver.com/srv/git/myproject.git > > [remote "mirror"] > > url = ssh://chris@xxxxxxxxxxxx/srv/git/mirrors/chris/myproject.git > > fetch = +refs/*:refs/* > > mirror = true > > Your mirror is configured to overwrite everything in refs/ if you fetch > from it. Meaning it will throw away anything you fetched from "origin", > as well as any local work. So this config is probably not what you want. > > I'm guessing what you really wanted is a remote only for pushing to, and > created it with: > > git remote add --mirror mirror ssh://... > > The --mirror option has problems with that case. See this thread: > > http://article.gmane.org/gmane.comp.version-control.git/161653 Here is a patch series which I think improves the situation. +cc Jan Hudec from the mentioned thread. [1/3]: remote: disallow some nonsensical option combinations [2/3]: remote: separate the concept of push and fetch mirrors [3/3]: remote: deprecate --mirror -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html