question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Master branch links are broken for branches with a `/` in the branch name

See original GitHub issue

Master branch links are broken for branches with a / in the branch name.

eg. branch sk/dev links to [repo]/tree/master/dev

bug is here: https://github.com/sindresorhus/refined-github/blob/master/source/features/branch-buttons.tsx#L78 and here: https://github.com/sindresorhus/refined-github/blob/master/source/libs/page-detect.ts#L84

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kevin940726commented, Jul 12, 2019

@bfred-it I would love to help! Maybe I can find time doing it later today.

1reaction
simonkotwiczcommented, May 26, 2019

https://github.com/simonkotwicz/refined-github/blob/branch/still-branch/.travis.yml#L6

Looks like the assumption of no / in branch names is in shortened links, permalinks and probably more places too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Master branch links are broken for branches with a ... - GitHub
Master branch links are broken for branches with a / in the branch name. eg. branch sk/dev links to [repo]/tree/master/dev.
Read more >
Broken branch in git, fatal: your current branch appears to be ...
I meet similar issue on Windows 7. In my case,the current branch file (refer by ./git/HEAD ) under \.git\refs\heads was broken.
Read more >
Source view URL of branch name with slashes broken ... - Jira
When using the site to view the branch we get a /src/<commit hash>/? at=<branch/name> URL. So while this is a workaround, it makes...
Read more >
Branch Management - Git SCM
The git branch command does more than just create and delete branches. ... Changing the name of a branch like master/main/mainline/default will break...
Read more >
How to fully delete remote Git branches from GitHub
Issue the git push origin –delete branch-name command, or use the vendor's online UI to perform a branch deletion; After the remote branch...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found