Skip to content

Strider was crashed when add a git repo without authentication info #33

@tunglam14

Description

@tunglam14

When i create new project manually with no authentication info (i.e: Github public repo: https://github.com/tunglam14/ruby-kong.git), error caused:

 /root/strider/node_modules/strider-git/lib/index.js:137
  if (config.auth.type === 'ssh') {
                 ^                                       
TypeError: Cannot read property 'type' of undefined 
    at Object.getBranches (/root/strider/node_modules/strider-git/lib/index.js:137:18)

Because, no auth info is initialized.
If it's a bug, I'm happy to fix.

@knownasilya

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions