Move connectCommits back to top level