Use older command to get remote origin (#956)

Ref #764
This commit is contained in:
Joel Marcey 2018-09-12 10:36:38 -07:00 committed by Endilie Yacop Sucipto
parent 9367b3b63b
commit c4740f7af2

View file

@ -67,7 +67,9 @@ if (IS_PULL_REQUEST) {
} }
// When we want to do a cross repo publish (#717), we can allow publishing to the same branch. // When we want to do a cross repo publish (#717), we can allow publishing to the same branch.
const currentRepoUrl = shell.exec('git remote get-url origin').stdout.trim(); const currentRepoUrl = shell
.exec('git config --get remote.origin.url')
.stdout.trim();
const crossRepoPublish = !currentRepoUrl.endsWith( const crossRepoPublish = !currentRepoUrl.endsWith(
`${ORGANIZATION_NAME}/${PROJECT_NAME}.git` `${ORGANIZATION_NAME}/${PROJECT_NAME}.git`
); );