Skip to content

fix: support pushurl remote config#618

Open
aduh95 wants to merge 3 commits intotschaub:mainfrom
aduh95:fix-pushurl
Open

fix: support pushurl remote config#618
aduh95 wants to merge 3 commits intotschaub:mainfrom
aduh95:fix-pushurl

Conversation

@aduh95
Copy link

@aduh95 aduh95 commented Aug 6, 2025

I was trying to upgrade an old project from gh-pages 4.x to 6.x. Let's assume the following git configuration:

$  git remote -v                   
origin  https://github.com/owner/repo.git (fetch)
origin  git@github.com:owner/repo.git (push)

I would expect gh-pages respect that configuration, i.e. pulling using the HTTPS URL (not auth needed for a public repo), and push using the authenticated SSH one. However, gh-pages tries to use the "fetch" one to push, which fails because it's not authenticated.

@tschaub
Copy link
Owner

tschaub commented Aug 6, 2025

Thanks for the proposed change, @aduh95. Can you run npm run lint -- --fix and push the lint fixes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants