jesseduffield / jesseduffield/lazygit
git error:data contained a nul byte that could not be represented as a string
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
**Describe the bug**
A clear and concise description of what the bug is.
Using LazyVim (fully updated), and trying to manage git via lazygit (space gg)
I can stage files just fine, press 'c' to commit, I enter a commit message and press control-d to commit. then I 'p' to push, and get an error popup: git error:data contained a nul byte that could not be represented as a string
**To Reproduce**
Steps to reproduce the behavior:
1. make a change in a git repository [using lazyvim]
2. space-gg to open lazygit
3. stage changes
4. press 'c' to commit
5. enter commit message
6. press control-d to commit
7. press 'p' to push
8. achieve nul byte error
**Expected behavior**
the commit should be pushed to the origin repository
**Version info:**
_Run `lazygit --version` and paste the result here_
commit=, build date=, build source=homebrew, version=0.42.0, os=darwin, arch=arm64, git version=2.45.2
_Run `git --version` and paste the result here_
git version 2.45.2
**Additional context**
pushing commits from command line 'git' works fine, pushing via the 'git browse' in lazyvim works fine
Contributor guide
Assessment
This issue has not been assessed yet.