jesseduffield / jesseduffield/lazygit

apostrophe in remote branch title causes error

Open
#1,566 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**
Lazygit throws a `panic: Starting quote has no ending quote.` error. This happens when there is an apostrophe (single quote) is used in the git issue title and you try to scroll over the issue in the `Remotes` branches. Its possible this might happen in the `Local Branches` as well but I did not test.

**To Reproduce**
Steps to reproduce the behavior:
1. In a git repo, create a PR whose git issue contains a " ' " in the title.
2. Open Lazygit for that repo.
3. In the Local Branches pane, press `]` to move to Remotes
4. Use the arrow keys to scroll down to your remote branch with the offending issue title you created in step 1.

**Expected behavior**
The pane should continue scrolling without giving an error.

**Desktop (please complete the following information):**
- OS: Ubuntu 20.04 LTS (fossa-melisa X20)
- Lazygit Version: commit=, build date=2021-04-11, build source=debian, version=0.27.4, os=linux, arch=amd64
- The last commit id if you built project from sources (run : ```git-rev parse HEAD```)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.