When the repository is a Git repository it will set the branch, tag if its set and the commit hash.
Closes SW-207