mirror of
https://github.com/scratchfoundation/gh-pages.git
synced 2025-03-14 06:29:51 -04:00
Make options parameter optional
This allows the module to be used like so: ghpages.deploy(basePath, callback)
This commit is contained in:
parent
f610cf7348
commit
ab5a1bef78
1 changed files with 5 additions and 0 deletions
|
@ -50,6 +50,11 @@ function getRepo(options) {
|
|||
* Push a git branch to a remote (pushes gh-pages by default).
|
||||
*/
|
||||
exports.publish = function publish(basePath, config, done) {
|
||||
if (typeof config === 'function') {
|
||||
done = config;
|
||||
config = {};
|
||||
}
|
||||
|
||||
var defaults = {
|
||||
add: false,
|
||||
git: 'git',
|
||||
|
|
Loading…
Reference in a new issue