jesseduffield / lazygit

simple terminal UI for git commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when creating Pull Requests with Bitbucket

arturolinares opened this issue · comments

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

  1. Clone a bitbucket repository.
  2. Make some changes, and commit to a branch.
  3. Push the branch
  4. Create a PR by typing "o" in the branches pane
  5. 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.

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'