Change branch in GitRepository changed

(cherry picked from commit 5cf5525fcdda086f3c15f7985051cf0a5bb77108)