feat: add support for git version 2.0.0
This commit is contained in:
parent
cd8ff5df43
commit
47c73eb672
@ -69,7 +69,7 @@ async function gitHead() {
|
|||||||
*/
|
*/
|
||||||
async function repoUrl() {
|
async function repoUrl() {
|
||||||
try {
|
try {
|
||||||
return await execa.stdout('git', ['remote', 'get-url', 'origin']);
|
return await execa.stdout('git', ['config', '--get', 'remote.origin.url']);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
debug(err);
|
debug(err);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user