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

Empty repo: Cannot read property 'split' of undefined #1048

Open
useo6 opened this issue Jan 1, 2018 · 4 comments
Open

Empty repo: Cannot read property 'split' of undefined #1048

useo6 opened this issue Jan 1, 2018 · 4 comments
Assignees

Comments

@useo6
Copy link

useo6 commented Jan 1, 2018

I created a new project and strider told me everything is fine, but when I want configure my project (/project/name/config), strider crashes with the following message:

/root/strider/node_modules/strider-git/lib/index.js:132
    return line.split(/\s+/)[1].split('/').slice(-1)[0];
                               ^

TypeError: Cannot read property 'split' of undefined
    at /root/strider/node_modules/strider-git/lib/index.js:132:32
    at Array.map (<anonymous>)
    at processBranches (/root/strider/node_modules/strider-git/lib/index.js:131:39)
    at /root/strider/node_modules/strider-git/lib/index.js:153:7
    at ChildProcess.exithandler (child_process.js:267:7)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
1726 died 1 null
1747 forked
@knownasilya
Copy link
Member

Did you get a chance to update your plugins first?

@ghost
Copy link

ghost commented Jan 2, 2018

I updated all plugins an the error was solved. Thank you!

@useo6 useo6 closed this as completed Jan 3, 2018
@useo6
Copy link
Author

useo6 commented Jan 3, 2018

I figured out that not the plugin upgrade solved the issue. I tried to clone an empty git repository for testing purposes. So, when the repository is empty, strider crashes with the error message above.
I know, it makes no sense to add an empty repository, but I never thought that this could be a problem.

@knownasilya knownasilya reopened this Jan 3, 2018
@knownasilya
Copy link
Member

Sounds like a bug. Will keep open.

@knownasilya knownasilya changed the title Cannot read property 'split' of undefined Empty repo: Cannot read property 'split' of undefined Jan 3, 2018
@knownasilya knownasilya self-assigned this Feb 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants