We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4341e7e commit 4c8f91bCopy full SHA for 4c8f91b
LibGit2Sharp.Tests/BranchFixture.cs
@@ -860,6 +860,24 @@ public void CanRemoveAnExistingBranch(string branchName)
860
}
861
862
863
+ [Fact]
864
+ public void CanCreateBranchInDeletedNestedBranchNamespace()
865
+ {
866
+ string namespaceName = "level_one";
867
+ string branchWithNamespaceName = string.Join("/", namespaceName, "level_two");
868
+
869
+ string path = CloneStandardTestRepo();
870
+ using (var repo = new Repository(path))
871
872
+ Commit commit = repo.Head.Tip;
873
874
+ Branch branchWithNamespace = repo.Branches.Add(branchWithNamespaceName, commit);
875
+ repo.Branches.Remove(branchWithNamespace);
876
877
+ repo.Branches.Add(namespaceName, commit);
878
+ }
879
880
881
[Theory]
882
[InlineData("I-donot-exist", false)]
883
[InlineData("me/neither", true)]
0 commit comments