Skip to content

Commit 7ceaaca

Browse files
authored
Add context for git diff (#18860)
1 parent 4b46a13 commit 7ceaaca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

make-util.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ var shell = require('shelljs');
1111
var syncRequest = require('sync-request');
1212

1313
// global paths
14-
var downloadPath = path.join(__dirname, '_download');
14+
var repoPath = __dirname;
15+
var downloadPath = path.join(repoPath, '_download');
1516

1617
// list of .NET culture names
1718
var cultureNames = ['cs', 'de', 'es', 'fr', 'it', 'ja', 'ko', 'pl', 'pt-BR', 'ru', 'tr', 'zh-Hans', 'zh-Hant'];
@@ -1910,8 +1911,7 @@ function syncGeneratedFilesWrapper(originalFunction, genTaskPath, callGenTaskDur
19101911
"Syncing generated files with source task...\n" +
19111912
"----------------------------------------------\n" +
19121913
"Getting list of uncommitted changes");
1913-
1914-
const initialDiffOutput = run(`git diff --name-only`)
1914+
const initialDiffOutput = run(`git -C "${repoPath}" diff --name-only`)
19151915
console.log(
19161916
"uncommitted changes:\n" +
19171917
`${initialDiffOutput}\n` +

0 commit comments

Comments
 (0)