private static void SetupMasterBranch(Repository repository, string masterName, Signature author) { //We know we have a master branch , so check to see if the gitflow master is different and if it is Branch branch; if (masterName != "master" && !repository.TryGetBranch(masterName, out branch)) { repository.CreateBranch(masterName); } }