: Fix variable anme

This commit is contained in:
Zoltan Csizmadia 2021-09-29 13:30:40 -05:00
parent 2ccfbf4038
commit 4785ae7d1a

View file

@ -494,9 +494,9 @@ export class Git {
// MSYS2 Git (not Git for Windows) rev-parse returns Cygwin style path. (Git for Windows returns Windows style path with rev-parse)
// Convert Cygwin style path -> Windows style path
let cygpathRegex = /^\\([a-z])\\/;
if (cygpathRegex.test(r))
if (cygpathRegex.test(repoPath))
{
return r.replace(cygpathRegex, "$1:\\");
return repoPath.replace(cygpathRegex, "$1:\\");
}
}