Skip to content

🐛[BUG] system加速模式下url转义错误,与gitee平台中url风格分支名不兼容 #4134

Description

@Jesse205

请认真检查以下清单中的每一项

  • 已经搜索过,没有发现类似的 issue
  • 已经搜索过文档,没有发现相关内容
  • 已经尝试使用过最新版,问题依旧存在
  • 使用的是官方版本(未替换及修改过安装目录程序文件)

🐛 描述

在开启 system 加速模式下,如果分支名带有/,则会在gitee的分支切换、创建pr的时候报404错误,原因是链接发生了二次转义(/->%2F->%252F)。

相关的Gitee issue链接:https://gitee.com/oschina/git-osc/issues/IK9PCW

📷 复现步骤

路径1

  1. 打开Watt Toolit,将加速模式调整为System,并开启加速服务
  2. 进入 https://gitee.com/Jesse205/test-path-style-branch
  3. 点击左上角分支选择器,选择 feat/add-xxx1 或者 fix/delete-xxx1
  4. 页面报错 404

路径2

  1. 打开Watt Toolit,将加速模式调整为System,并开启加速服务
  2. 进入 https://gitee.com/Jesse205/test-path-style-branch
  3. 点击顶部 Pull Requests
  4. 点击右上角 新建 Pull Requests
  5. 点击顶部源分支/目标分支的选择器,选择 feat/add-xxx1 或者 fix/delete-xxx1
  6. 提示 目标/源分支 feat%2Fadd-xxx1/fix%2Fdelete-xxx1 不存在

📄 日志信息

🖼 截图

Image
_.mp4

🚑 其他信息

  • 处理器体系结构:x64
  • 系统版本号:Windows 11 26200.9168
  • 下载渠道:微软商店
  • 程序版本:3.1.0
  • 是否包含独立运行时:未知

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions