public void FinishHotfixWithTagShouldTagRepo()
        {
            var gf = new GitFlowWrapper(sampleRepoPath);

            gf.Init(new GitFlowRepoSettings());
            gf.StartHotfix("hf1");
            gf.FinishHotfix("hf1", "1.2.3", false);
            using (var repo = new Repository(sampleRepoPath))
            {
                Assert.AreEqual(1, repo.Tags.Count());
            }
        }
        public void FinishHotfix()
        {
            var gf = new GitFlowWrapper(sampleRepoPath);

            gf.Init(new GitFlowRepoSettings());
            gf.StartHotfix("hf1");
            gf.FinishHotfix("hf1");
            using (var repo = new Repository(sampleRepoPath))
            {
                //Hotfix branch should be deleted (default option)
                Assert.IsFalse(repo.Branches.Any(b => !b.IsRemote && b.Name == "hotfix/hf1"));
            }
        }
Exemplo n.º 3
0
 public void FinishHotfix()
 {
     var gf = new GitFlowWrapper(sampleRepoPath);
     gf.Init(new GitFlowRepoSettings());
     gf.StartHotfix("hf1");
     gf.FinishHotfix("hf1");
     using (var repo = new Repository(sampleRepoPath))
     {
         //Hotfix branch should be deleted (default option)
         Assert.IsFalse(repo.Branches.Any(b => !b.IsRemote && b.Name == "hotfix/hf1"));
     }
 }
Exemplo n.º 4
0
 public void FinishHotfixWithTagShouldTagRepo()
 {
     var gf = new GitFlowWrapper(sampleRepoPath);
     gf.Init(new GitFlowRepoSettings());
     gf.StartHotfix("hf1");
     gf.FinishHotfix("hf1", "1.2.3", false);
     using (var repo = new Repository(sampleRepoPath))
     {
         Assert.AreEqual(1, repo.Tags.Count());
     }
 }