make it possible to reference a branch of a local git repository

Reasoning on why this change is wanted can be found
on the "sbt-dev" mailing list,
topic "problem with referencing a local git repository"
minor change: code style
Merge pull request #1409 from vn971/0.13

make it possible to reference a branch of a local git repository