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 431e9c6 commit 3e7ae31Copy full SHA for 3e7ae31
LibGit2Sharp.Tests/BranchFixture.cs
@@ -919,6 +919,24 @@ public void CanRemoveAnExistingBranch(string branchName)
919
}
920
921
922
+ [Fact]
923
+ public void CanCreateBranchInDeletedNestedBranchNamespace()
924
+ {
925
+ const string namespaceName = "level_one";
926
+ string branchWithNamespaceName = string.Join("/", namespaceName, "level_two");
927
+
928
+ string path = SandboxStandardTestRepo();
929
+ using (var repo = new Repository(path))
930
931
+ Commit commit = repo.Head.Tip;
932
933
+ Branch branchWithNamespace = repo.Branches.Add(branchWithNamespaceName, commit);
934
+ repo.Branches.Remove(branchWithNamespace);
935
936
+ repo.Branches.Add(namespaceName, commit);
937
+ }
938
939
940
[Theory]
941
[InlineData("I-donot-exist", false)]
942
[InlineData("me/neither", true)]
0 commit comments