Skip to content

Commit

Permalink
Merge kewillford/untracked_missing
Browse files Browse the repository at this point in the history
  • Loading branch information
derrickstolee committed Oct 11, 2018
2 parents c3f03f8 + 03fba04 commit 26e67c3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public void CaseOnlyRenameOfNewFolderKeepsModifiedPathsEntries()
this.Enlistment.WaitForBackgroundOperations().ShouldEqual(true, "Background operations failed to complete.");

GVFSHelpers.ModifiedPathsShouldContain(this.fileSystem, this.Enlistment.DotGVFSRoot, "Folder/");
GVFSHelpers.ModifiedPathsShouldNotContain(this.fileSystem, this.Enlistment.DotGVFSRoot, "Folder/testfile");

this.fileSystem.RenameDirectory(this.Enlistment.RepoRoot, "Folder", "folder");
this.Enlistment.WaitForBackgroundOperations().ShouldEqual(true, "Background operations failed to complete.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public class GitCommandsTests : GitRepoTests
private const string EncodingFilename = "ريلٌأكتوبرûمارسأغسطسºٰٰۂْٗ۵ريلٌأك.txt";
private const string ContentWhenEditingFile = "// Adding a comment to the file";
private const string UnknownTestName = "Unknown";
private const string TopLevelFolderToCreate = "level1";
private const string SubFolderToCreate = "level2";

private static readonly string EditFilePath = Path.Combine("GVFS", "GVFS.Common", "GVFSContext.cs");
private static readonly string DeleteFilePath = Path.Combine("GVFS", "GVFS", "Program.cs");
Expand Down Expand Up @@ -1088,6 +1090,9 @@ private void CommitChangesSwitchBranchSwitchBack(Action fileSystemAction, [Calle
private void CreateFile()
{
this.CreateFile("Some content here", Path.GetRandomFileName() + "tempFile.txt");
this.CreateFolder(TopLevelFolderToCreate);
this.CreateFolder(Path.Combine(TopLevelFolderToCreate, SubFolderToCreate));
this.CreateFile("File in new folder", Path.Combine(TopLevelFolderToCreate, SubFolderToCreate, Path.GetRandomFileName() + "folderFile.txt"));
}

private void EditFile()
Expand Down
2 changes: 1 addition & 1 deletion GVFS/GVFS.FunctionalTests/Tools/GVFSHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static void ModifiedPathsShouldContain(FileSystemRunner fileSystem, strin
string[] modifedPathLines = modifedPathsContents.Split(new[] { ModifiedPathsNewLine }, StringSplitOptions.None);
foreach (string gitPath in gitPaths)
{
modifedPathLines.ShouldContain(path => path.Equals(ModifedPathsLineAddPrefix + gitPath));
modifedPathLines.ShouldContain(path => path.Equals(ModifedPathsLineAddPrefix + gitPath, StringComparison.OrdinalIgnoreCase));
}
}

Expand Down

0 comments on commit 26e67c3

Please sign in to comment.