Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating Pull Requests with Bitbucket #3524

Closed
arturolinares opened this issue Apr 24, 2024 · 1 comment
Closed

Error when creating Pull Requests with Bitbucket #3524

arturolinares opened this issue Apr 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@arturolinares
Copy link

arturolinares commented Apr 24, 2024

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.

@arturolinares arturolinares added the bug Something isn't working label Apr 24, 2024
@arturolinares
Copy link
Author

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant