Coder Social home page Coder Social logo

Git error (128) ! about neogit HOT 5 CLOSED

neogitorg avatar neogitorg commented on July 20, 2024
Git error (128) !

from neogit.

Comments (5)

teto avatar teto commented on July 20, 2024

more worrying seems like neogit autoremoves some files, disabling neogit fixed it.

from neogit.

TimUntersberger avatar TimUntersberger commented on July 20, 2024

Not only that but pressing $ does nothing

I should probably change the message if the status buffer is not open, because $ is only mapped when inside the status window.

more worrying seems like neogit autoremoves some files, disabling neogit fixed it.

@teto which files were removed?

from neogit.

teto avatar teto commented on July 20, 2024

It's a file I had just renamed. Everytime I opened it with neovim it would get emptied with neogit.

from neogit.

TimUntersberger avatar TimUntersberger commented on July 20, 2024

Could you please tell me the steps you took to encounter this issue?

from neogit.

RianFuro avatar RianFuro commented on July 20, 2024

@TimUntersberger The errors should come from the renamed file. If git detects a rename, the output looks as follows:

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	renamed:    a.txt -> b.txt

We then naively put that into git commands:

 128 git diff a.txt -> b.txt
 128 git diff --cached a.txt -> b.txt

I can also reproduce that file getting emptied, most likely due to those diff commands. They'd be interpreted as piping the output from the diff commands to b.txt - which is nothing since the commands fail and their only output is on stderr

from neogit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.