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"
Yea, could you? Unless you have some good reason to keep `null` in there. Otherwise, I'm ready to merge.