fix: 修复 HTTP 认证 URL 拼接缺少 baseurl、仓库地址校验优化、pip 安装兼容性#39
Open
BrianBoyCN wants to merge 2 commits into
Open
Conversation
- shell/update/git.sh: URL 重定向时补上丢失的 $baseurl 变量 - shell/core/sync.sh: 仓库地址校验不强制要求 .git 后缀,没有则自动补上 - shell/core/sync.sh: 去除多余的 sed 's|\.git||g'(awk 已能正确提取仓库名和目录名) - shell/utils/dep.sh: pip3 install 添加 --ignore-installed 避免包冲突
fix: 修复 URL 拼接、仓库地址校验、pip 安装等问题
Closed
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.
修改内容
1.
shell/update/git.sh— 修复 HTTP 认证仓库地址重定向丢失 baseurl原代码在拼接认证 URL 时丢失了
${baseurl},导致重定向后的地址不完整。两处均有修复:
git_clone_with_http_auth和reset_romote_url_with_http_auth。2.
shell/core/sync.sh— 仓库地址校验支持自动补.git后缀.git结尾时不再直接跳过,改为自动补上后缀再继续sed "s|\.git||g",awk -F "/|:"已能正确提取仓库名和目录名3.
shell/utils/dep.sh— pip3 install 增加--ignore-installed避免因系统已安装包版本冲突导致安装失败。
测试
已在实际环境中验证通过,更新同步功能正常。