mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-02 07:53:55 +03:00
Encode branch names
This commit is contained in:
parent
064fdc04e3
commit
3a90776657
@ -13,7 +13,7 @@
|
||||
// Here we specifically want to prefer looking at the remote branch as
|
||||
// the there may be multiple remotes that share the same local branch.
|
||||
if (b.branch)
|
||||
return `/${projectId}/branch/${branch?.remoteBranch?.name || branch?.localBranch?.name}`;
|
||||
return `/${projectId}/branch/${encodeURIComponent(branch?.remoteBranch?.name || branch!.localBranch!.name)}`;
|
||||
if (b.pr) return `/${projectId}/pull/${b.pr.number}`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user