+
Skip to content

repo.remove throws error #84

Closed
Closed
@Pomax

Description

@Pomax

when using repo.remove('gh-pages', 'file that exists', function(err) { console.error(err); }); I get the following error and callstack:

Uncaught TypeError: Cannot call method 'reject' of undefined -- github.js:532
(anonymous function) -- github.js:532
(anonymous function) -- github.js:347

I was trying to effect a "repo.replace" by first removing a file I know exists in the tree using repo.remove and then calling repo.write to put in a new copy with updated information, but the remove throws this error.

It appears that the _ var in https://github.com/michael/github/blob/master/github.js#L532 does not actually point to anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载