We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6034c6a commit 5f087b1Copy full SHA for 5f087b1
Tasks/Common/nuget-task-common/NuGetConfigHelper.ts
@@ -44,7 +44,9 @@ export class NuGetConfigHelper {
44
};
45
46
if (this._nugetConfigPath) {
47
- tl.cp("-f", this._nugetConfigPath, this.tempNugetConfigPath);
+ // don't use cp as that copies the read-only flag, and tfvc sets that on files
48
+ let content = fs.readFileSync(this._nugetConfigPath);
49
+ fs.writeFileSync(this.tempNugetConfigPath, content);
50
}
51
else {
52
// small file, use writeFileSync
0 commit comments