Skip to content

Commit

Permalink
two bugs: repo#commit's optional options parameter and repo#sync's re…
Browse files Browse the repository at this point in the history
…quired branch parameter
  • Loading branch information
Yuest Wang committed Apr 29, 2012
1 parent 6b759b7 commit fbb3f39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/repo.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) =>
Expand Down

0 comments on commit fbb3f39

Please sign in to comment.