File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -860,6 +860,24 @@ public void CanRemoveAnExistingBranch(string branchName)
860
860
}
861
861
}
862
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
+
863
881
[ Theory ]
864
882
[ InlineData ( "I-donot-exist" , false ) ]
865
883
[ InlineData ( "me/neither" , true ) ]
You can’t perform that action at this time.
0 commit comments