Git Product home page Git Product logo

Comments (7)

wojciechgucik avatar wojciechgucik commented on September 1, 2024

+1
error shows up when you have clean working directory.
logging out status variable shows status[4] is empty string when there is nothing to commit:
[
'On branch foo-branch',
'Your branch is up-to-date with 'origin/foo-branch'.',
'nothing to commit, working directory clean',
''
]

from gg.

qw3rtman avatar qw3rtman commented on September 1, 2024

Merged and published to npm. Update with npm update -g gitgoodies. Let me know if the issue is fixed.

from gg.

nim23 avatar nim23 commented on September 1, 2024

Thanks for the quick fix, it's working all fine now.

from gg.

enure avatar enure commented on September 1, 2024

I'm seeing this issue currently. Just installed gg today.

~/code/puppet (nvm: v0.12.0)
$ gg status
branch   | foo
position | up-to-date

~/.nvm/v0.12.0/lib/node_modules/gitgoodies/lib/gg.js:194
                if (status[4].split(' ')[0] === 'Untracked') {
                             ^
TypeError: Cannot read property 'split' of undefined
    at ~/.nvm/v0.12.0/lib/node_modules/gitgoodies/lib/gg.js:194:18
    at ChildProcess.exithandler (child_process.js:735:7)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1008:16)
    at Socket.<anonymous> (child_process.js:1176:11)
    at Socket.emit (events.js:107:17)
    at Pipe.close (net.js:476:12)

~/code/puppet (nvm: v0.12.0)
$ git status
On branch foo
Your branch is up-to-date with 'origin/foo'.
nothing to commit, working directory clean

Let me know what other information I can provide.

from gg.

heyvito avatar heyvito commented on September 1, 2024

Same here.

victorgama:repo/ (master) $
branch   | master
position | up-to-date

/usr/local/lib/node_modules/gitgoodies/lib/gg.js:197
                if (status[4].split(' ')[0] === 'Untracked') {
                             ^
TypeError: Cannot read property 'split' of undefined
    at /usr/local/lib/node_modules/gitgoodies/lib/gg.js:197:18
    at ChildProcess.exithandler (child_process.js:707:7)
    at emitTwo (events.js:85:13)
    at ChildProcess.emit (events.js:153:7)
    at maybeClose (child_process.js:984:16)
    at Socket.<anonymous> (child_process.js:1153:11)
    at emitOne (events.js:75:13)
    at Socket.emit (events.js:150:7)
    at Pipe.close (net.js:457:12)

victorgama:repo/ (master) $ git --version
git version 2.3.2
victorgama:repo/ (master) $ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
victorgama:repo/ (master) $ echo $0
-zsh

from gg.

qw3rtman avatar qw3rtman commented on September 1, 2024

Rewrote the staging section of the status command from scratch. Update with npm update -g gitgoodies. Let me know if the issue is fixed. 😄

from gg.

qw3rtman avatar qw3rtman commented on September 1, 2024

Alright, tested and working on my end. Let me know if it's fixed now.

from gg.

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.