Added the ability to update bare repos using fetch

Hello,
I've previously created an issue for this but since I needed it quickly, I had to search for a dirty fix. I wanted to let you know about this solution in case it could be of any use.