1
0
mirror of https://github.com/danog/gift.git synced 2024-11-30 04:19:37 +01:00

repo#sync default

This commit is contained in:
Yuest Wang 2012-04-29 20:31:54 +08:00
parent fbb3f3943b
commit d419912f4f

View File

@ -248,6 +248,7 @@ module.exports = class Repo
# callback - Receives `(err)`.
#
sync: (branch, callback) ->
[callback, branch] = [branch, []] if !callback
@git "stash", {}, ["save"], (err) =>
return callback err if err
@git "pull", {}, branch, (err) =>