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:
parent
fbb3f3943b
commit
d419912f4f
@ -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) =>
|
||||
|
Loading…
Reference in New Issue
Block a user