Comments (7)
+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.
Merged and published to npm. Update with npm update -g gitgoodies
. Let me know if the issue is fixed.
from gg.
Thanks for the quick fix, it's working all fine now.
from gg.
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.
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.
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.
Alright, tested and working on my end. Let me know if it's fixed now.
from gg.
Related Issues (20)
- Alias for gg command HOT 3
- `gg cl` to move inside cloned directory HOT 3
- Add graphs HOT 4
- Fetching with wrong password produces wrong output HOT 1
- GitHub clone default username HOT 3
- Some issues HOT 1
- /usr/local/bin/gg: line 281: [: too many arguments HOT 5
- Error when installing on debian HOT 3
- Error when executing installation script HOT 4
- How to run multiple command at once? HOT 1
- More quoting fixes HOT 1
- Add Support Command for `git remote`?
- Add gg pi HOT 1
- Add force-pushing
- iTerm2 didn't show comment with "gg help"
- Proposal - branch delete - gg bd HOT 1
- gg merge from upstream branch
- Are there any plans to update this? Currently it won't work in ZSH. HOT 2
- gg push branch sets up stream as well
- gg list does not include remote branches
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gg.