jesseduffield / jesseduffield/lazygit

Additional caret symbol is added before angle symbol on win OS

Open
#1,772 0 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**
If command contains angle symbol, there will be a caret symbol added before angle symbol after execute via lazygit

**To Reproduce**
Steps to reproduce the behavior:
1. Go to %APPDATA%\lazygit\config.yml
2. Add the following codes
```
customCommands:
- key: ''
description: 'amend the author of last commit'
command: 'git commit --amend --author="{{index .PromptResponses 0}} <{{index .PromptResponses 1}}>"'
context: 'commits'
prompts:
- type: 'input'
title: 'Author Name'
initialValue: ''
- type: 'input'
title: 'Email Address'
initialValue: ''
subprocess: true
```
3. Restart lazygit
4. Go to commits panel > Select the last commit
7. Press Ctrl + a
8. Enter Author Name
9. Enter Author email address

**Expected behavior**
Author: Yang Cao

**Actual behavior**
![image](https://user-images.githubusercontent.com/52661397/153989199-f747d70b-2141-4816-ac6d-31cef575f5e0.png)
It is invalid

**Desktop:**
- OS: Windows
- Lazygit Version v0.32.2

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.