Skip to content

Commit 32a1a1c

Browse files
committed
GitRepoTests: force Scalar repo into sparse mode
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
1 parent f3a972d commit 32a1a1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Scalar.FunctionalTests/Tests/GitCommands/GitRepoTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ public virtual void SetupForTest()
145145

146146
GitProcess.InvokeProcess(this.ControlGitRepo.RootPath, "sparse-checkout init --cone", string.Empty);
147147
GitProcess.InvokeProcess(this.ControlGitRepo.RootPath, "sparse-checkout set --stdin", sb.ToString());
148+
149+
// This line shouldn't be necessary!
150+
GitProcess.InvokeProcess(this.Enlistment.RepoRoot, "sparse-checkout init --cone", string.Empty);
148151
GitProcess.InvokeProcess(this.Enlistment.RepoRoot, "sparse-checkout set --stdin", sb.ToString());
149152
this.pathPrefixes = SparseModeFolders;
150153
}

0 commit comments

Comments
 (0)