Skip to content

Commit

Permalink
Use older command to get remote origin
Browse files Browse the repository at this point in the history
Ref #764
  • Loading branch information
JoelMarcey committed Sep 12, 2018
1 parent 9367b3b commit 7e2cd0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/publish-gh-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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(
`${ORGANIZATION_NAME}/${PROJECT_NAME}.git`
);
Expand Down

0 comments on commit 7e2cd0b

Please sign in to comment.