lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

git error:data contained a nul byte that could not be represented as a string

Open theesfeld opened this issue 1 year ago • 0 comments

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

theesfeld avatar Jul 10 '24 16:07 theesfeld