[FIXED JENKINS-16888] compute ObjectId before checking isCommitInRepo
added unit tests to cover 
- fetch from multiple repositories [JENKINS-16914]
- merge basic scenario
fix broken GitPublisherTest#testMatrixBuild