ben-gibson / GitLink

A Jetbrains plugin that opens a local file under Git version control in its remote host using the default browser.
https://plugins.jetbrains.com/plugin/8183-gitlink
MIT License
671 stars 58 forks source link

Support {branch} in "File at commit template" #281

Open hzhr opened 1 year ago

hzhr commented 1 year ago

Steps to reproduce:

  1. Some git server use branch name in commit url
  2. Add new Custom Platform, use {branch} to set "File at commit template": https://xxx.server/xxx?branch={branch}&xxxx
  3. GitLink, Open in XXX, or Copy XXX link

Expected behaviour: {branch} is replaced by real branch name, eg: dev The url is correct: https://xxx.server/xxx?branch=dev&xxxx

Actual behaviour: {branch} is empty, the url is wrong: https://xxx.server/xxx?branch=&xxxx