ben-gibson/GitLink

Support {branch} in "File at commit template"

hzhr opened this issue · 1 comments

hzhr commented

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

This has been added in 4.5.0