Use actual proper path to local git config
This commit is contained in:
parent
506d788956
commit
dc8a26fea2
@ -29,7 +29,7 @@ const testDir = path.join(process.cwd() + "/tests/operations/tests/");
|
||||
const configFile = "/.gitconfig";
|
||||
let gitUserEmail, gitUserName;
|
||||
// gitconfig in root is better than global one
|
||||
let gitConfig = process.cwd() + '.git/config';
|
||||
let gitConfig = process.cwd() + '/.git/config';
|
||||
if (!fs.existsSync(gitConfig)) {
|
||||
gitConfig = process.env.HOME + configFile;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user