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

Error when repo.add with 2 arguments : options/callback #78

Open
jRichardeau opened this issue Jan 19, 2016 · 1 comment
Open

Error when repo.add with 2 arguments : options/callback #78

jRichardeau opened this issue Jan 19, 2016 · 1 comment

Comments

@jRichardeau
Copy link

When using the "add" feature of repo, if you call it with two arguments : options and callback, there is an error because command line executed is "git add [Object object]".

I was trying with repo.add({"A":true}, function(){...}), that is not working.

When replacing "files" first argument with null, using repo.add(null, {"A": true}, function(){...}), it is working and runs "git add -A"

Maybe just confusing documentation because options is not specified ?

@notatestuser
Copy link
Owner

options should be documented

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