Recommend git --mirror instead of --bare to better support remote tracking branches?
I've been running into some issues with tracking branches in Redmine. The documentation on the RedmineRepositories page indicates that --bare should be used. This works great if you only have a master branch. It does not seem to work so well when you have (or at least add) new branches.
Are there any reasons why --mirror is a bad idea? If not, I might suggest that the RedmineRepositories page get updated to use --mirror instead of --bare to save some people some headaches down the road.
See this Stack Overflow post for more information on what is going on.
RE: Recommend git --mirror instead of --bare to better support remote tracking branches? - Added by Felix Schäfer over 10 years ago
--mirror wasn't available yet at the time of the writing of the instructions. It's a wiki page, feel free to improve it.
RE: Recommend git --mirror instead of --bare to better support remote tracking branches? - Added by Beau Simensen over 10 years ago
Thanks. It never occurred to me that I'd have wiki write access here. :) I made a first pass at some notes for setting things up this way. I still don't know all of the implications so I'm not sure I'd want to update the docs to say that this is "the way" to do this. Maybe after awhile we can go that route, though.