Error when creating Pull Requests with Bitbucket
arturolinares opened this issue · comments
Arturo Linares commented
Describe the bug
When I try to create a Pull Request from lazygit by pressing "o" in the branches' pane, I get this error message:
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an
ampersand in double
quotation marks ("&") to pass it as part of a string.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed
To Reproduce
- Clone a bitbucket repository.
- Make some changes, and commit to a branch.
- Push the branch
- Create a PR by typing "o" in the branches pane
- The error message shows up
Expected behavior
I would expect that the browser would open with the details of the PR.
Version info:
commit=3675570a391b1a49ddd198b4c7e71e17701d4404, build date=2024-03-23T09:09:11Z, build source=binaryRelease, version=0.41.0, os=linux, arch=amd64, git version=2.34.1
git version 2.34.1
Additional Context
This happens in WSL.
Arturo Linares commented
I'm closing this, because it is fixed by forcing lazygit to use xdg-open instead of powershell.
os:
open: 'xdg-open {{filename}} >/dev/null'
openLink: 'xdg-open {{link}} >/dev/null'