-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
hexo-deployer-git does not reference my ~/.ssh/config settings, OR it is not using my ssh user agent #368
Comments
hexo-deployer-git/lib/deployer.js Lines 94 to 109 in ef1a202
Judging from the logs you provided, it's stuck at the step of copying files, which has nothing to do with ssh. Or maybe you haven't provide complete logs. |
Thank you for the observations. I decided to try the same steps without the dev container to focus on the topic of git/ssh and not possible permissions issues within the dev container. ObservationsNow the public folder is deployed, but as the deployer doesn't reference my ~/.ssh/config file, it is using the wrong private key to deploy to the gh pages branch. (it shows my other account as the account that pushed to the gh-pages branch) Temp FixThe only temporary fix I know right now is forcing the "deploy": "GIT_AUTHOR_NAME='Foo' GIT_AUTHOR_EMAIL='[email protected]' hexo deploy", I have also tried setting Is there anything I can do to produce more helpful logs? |
deployer just simply exec
#353 has solved this issue but has not been published to npmjs yet. you can try: npm i https://github.com/hexojs/hexo-deployer-git/tree/880a3c3332d82743521f86737b7d815b128e622b |
Check List
Describe the bug
npx hexo deploy
does not reference my ~/.ssh/config or it is not using my ssh user agent.As a result, it hangs at the deploy step.
... INFO 90 files generated in 743 ms INFO Deploying: git INFO Clearing .deploy_git folder... INFO Copying files from public folder...
It does not proceed from the above and I have to restart my computer in order to get my daemon back in a functioning state (colima).
Expected behavior
git authenticates via my ssh user agent, checks the ~/.ssh/config file to map personal.github.com to github.com before finally authenticating with the remote and pushing my static bundle
How to reproduce
npx hexo clean && npx hexo deploy
Screenshots
No response
Environment information
Additional context
I have tested from within my dev container that ssh user agent forwarding is working as expected, and regular git commands work as well.
From within my dev container
My remote URL looks like
And my ~/.ssh/config looks like
I don't know how to further inspect what is happening. I know that with git I can do something like GIT_TRACE=true git pull, but I cannot do the same for this tool in order to further debug.
The text was updated successfully, but these errors were encountered: