Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"gg s" on not-git dir produced error #35

Closed
Iwan-Zotow opened this issue Mar 25, 2015 · 5 comments
Closed

"gg s" on not-git dir produced error #35

Iwan-Zotow opened this issue Mar 25, 2015 · 5 comments
Assignees

Comments

@Iwan-Zotow
Copy link

/usr/lib/node_modules/gitgoodies/lib/gg.js:279
switch (status[1].split(' ')[3]) {
^
TypeError: Cannot read property 'split' of undefined
at /usr/lib/node_modules/gitgoodies/lib/gg.js:279:22
at ChildProcess.exithandler (child_process.js:751:5)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1008:16)
at Socket. (child_process.js:1176:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:476:12)

@qw3rtman
Copy link
Owner

Could you paste the output of git status? A screenshot would be better so I can see where the linebreaks are.

@qw3rtman qw3rtman self-assigned this Mar 25, 2015
@Iwan-Zotow
Copy link
Author

here is the output of git status:
fatal: Not a git repository (or any of the parent directories): .git

@Iwan-Zotow
Copy link
Author

image

@Iwan-Zotow
Copy link
Author

Screenshot in one comment up. Gitgoodies are v0.6.4

@qw3rtman
Copy link
Owner

@Jackamo is currently working on adding a check for if a Git repository exists in the current directory or not. See #31.

Thanks for letting us know about it. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants