Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This issue also happens to me. #449

Closed
SofyanMahmoud0000 opened this issue Nov 26, 2022 · 0 comments
Closed

This issue also happens to me. #449

SofyanMahmoud0000 opened this issue Nov 26, 2022 · 0 comments

Comments

@SofyanMahmoud0000
Copy link

Bro, You are amazing
Thanks a lot

This issue also happens to me.

What I found

In my case, my repo is in the external drive.
And git adds new policy after version 2.35.2 that will prevent git command executes in repo on external drive until add a exception for that directory in git config.
When deploying, gh-pages will clone a repo to node_modules/.cache/gh-pages , but running git command in that repo are blocked by the policy.
So when gh-pages try to run git config --get remote.$REMOTE.url in that cloned repo to get the remote setting will get exit code 1 from git command.
By default, gh-pages consider that remote dosen't exists and throw error

Failed to get remote.origin.url (task must either be run in a git repository with a configured origin remote or must be configured with the "repo" option).

Workaround

add that cache repo path or * to git global config safe.directory

Originally posted by @nyraa in #443 (comment)

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

No branches or pull requests

1 participant