Skip to content

Commit 4c8f91b

Browse files
committed
Failing test case
1 parent 4341e7e commit 4c8f91b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

LibGit2Sharp.Tests/BranchFixture.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,24 @@ public void CanRemoveAnExistingBranch(string branchName)
860860
}
861861
}
862862

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+
863881
[Theory]
864882
[InlineData("I-donot-exist", false)]
865883
[InlineData("me/neither", true)]

0 commit comments

Comments
 (0)