Allow for bare repositories
Tested And Resolved
Final Version.

Tested on ubuntu 12.04 64bit
Merge pull request #88 from jaitaiwan/master

Add support for bare repositories