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

Include --work-path flag in commands in authorized_keys #15978

Closed
wants to merge 2 commits into from

Conversation

duxovni
Copy link

@duxovni duxovni commented May 25, 2021

Fixes #15973

@jolheiser
Copy link
Member

It looks like the tests are failing a comparison check. Can you please update them? 🙂

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 26, 2021
@jolheiser jolheiser added the type/enhancement An improvement of existing functionality label May 26, 2021
@jolheiser jolheiser added this to the 1.15.0 milestone May 26, 2021
@duxovni
Copy link
Author

duxovni commented May 26, 2021

Sorry about that, I neglected to run make test-sqlite after make test. I'm doing a full test run now to make sure I've fixed it, and then I'll push here.

@zeripath
Copy link
Contributor

I'm really not certain that this is necessary.

Why are you needing this? Gitea Serv and Hook shouldn't really need any thing that depends of AppWorkPath.

Could you please explain

@duxovni
Copy link
Author

duxovni commented May 26, 2021 via email

zeripath added a commit to zeripath/gitea that referenced this pull request May 27, 2021
@zeripath
Copy link
Contributor

zeripath commented May 27, 2021

I've made a PR that makes the authorized_keys command a template - allowing you to add work-path or other things as needed

techknowlogick added a commit that referenced this pull request Jun 15, 2021
Fix #15595
Replaces #15978

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: techknowlogick <[email protected]>
@techknowlogick
Copy link
Member

Closing per merge of linked PR

@techknowlogick techknowlogick removed this from the 1.15.0 milestone Jun 15, 2021
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this pull request Aug 10, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Properly set working directory in authorized_keys
5 participants