Fix error when branch doesn't exist
Fix namespace in getIterator()
Git class should be able to open bared repositories
Merge pull request #1 from laurentj/bugfix

Fixes few bugs