mirror of
https://github.com/danog/gift.git
synced 2024-12-02 09:17:55 +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)`.
|
# callback - Receives `(err)`.
|
||||||
#
|
#
|
||||||
sync: (branch, callback) ->
|
sync: (branch, callback) ->
|
||||||
|
[callback, branch] = [branch, []] if !callback
|
||||||
@git "stash", {}, ["save"], (err) =>
|
@git "stash", {}, ["save"], (err) =>
|
||||||
return callback err if err
|
return callback err if err
|
||||||
@git "pull", {}, branch, (err) =>
|
@git "pull", {}, branch, (err) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user