20250321-SongZihuan-Feature Proposal/功能提议#7939
Open
SongZihuan wants to merge 6 commits intogogs:mainfrom
Open
Conversation
使用user.Current()优先获取当前进程的真实用户,以解决通过sudo执行时显示原始用户的问题。如果user.Current()返回有效用户名,则直接返回;否则继续使用环境变量"USER"作为回退方案。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the pull request
我根据
gogs项目与我的实际情况,进行了一部分功能修改,并于huan-gogs上发表,于code-git.song-zh.com上部署运行。目前情况良好。运行环境为:Linux+MySQL+SMTP465+内置SSH。根据贡献要求,功能更新的相关说明我将会在
discussions中提出。Checklist
Test plan
出于能力考虑,我没有编写足够的自动化测试代码,我主要使用手动测试。