Skip to content

Commit 6e3e740

Browse files
committed
Docker: enable long paths for Git.
1 parent a25ae2e commit 6e3e740

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/PostSharp.Engineering.BuildTools/Docker/GitComponent.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public override void WriteDockerfile( TextWriter writer )
2020
$pathsToAdd = @('C:\git\cmd', 'C:\git\bin', 'C:\git\usr\bin'); `
2121
$newPath = [Environment]::GetEnvironmentVariable('PATH', 'Machine') + ';' + ($pathsToAdd -join ';'); `
2222
[Environment]::SetEnvironmentVariable('PATH', $newPath, 'Machine');
23+
24+
RUN "C:\Git\cmd\git.exe" config --system core.longpaths true
2325
""" );
2426
}
2527
}

0 commit comments

Comments
 (0)