diff --git a/src/repo.coffee b/src/repo.coffee index 48efa14..c739323 100644 --- a/src/repo.coffee +++ b/src/repo.coffee @@ -215,6 +215,7 @@ module.exports = class Repo # commit: (message, options, callback) -> [options, callback] = [callback, options] if !callback + options ?= {} options = _.extend options, {m: "'#{message}'"} @git "commit", options, (err, stdout, stderr) -> callback err @@ -246,7 +247,7 @@ module.exports = class Repo # # callback - Receives `(err)`. # - sync: (callback) -> + sync: (branch, callback) -> @git "stash", {}, ["save"], (err) => return callback err if err @git "pull", {}, branch, (err) =>