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 @@ -919,6 +919,24 @@ public void CanRemoveAnExistingBranch(string branchName)
919
919
}
920
920
}
921
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
+
922
940
[ Theory ]
923
941
[ InlineData ( "I-donot-exist" , false ) ]
924
942
[ InlineData ( "me/neither" , true ) ]
You can’t perform that action at this time.
0 commit comments