Skip to content

Commit 7d966b1

Browse files
committed
An assertion also had IsOrContains arguments swapped
1 parent 75d5fc7 commit 7d966b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TfvcMigrator/RepositoryBranchMapping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public RepositoryBranchMapping RenameRootDirectory(string oldPath, string newPat
5050
if (!PathUtils.IsAbsolute(newPath))
5151
throw new ArgumentException("New path must be absolute.", nameof(newPath));
5252

53-
if (!PathUtils.IsOrContains(oldPath, RootDirectory))
53+
if (!PathUtils.IsOrContains(RootDirectory, oldPath))
5454
throw new InvalidOperationException("The rename does not apply to this mapping.");
5555

5656
if (SubdirectoryMapping is not null)

0 commit comments

Comments
 (0)