From d419912f4ff3365f4e60455484aa6cbb7dcabb49 Mon Sep 17 00:00:00 2001 From: Yuest Wang Date: Sun, 29 Apr 2012 20:31:54 +0800 Subject: [PATCH] repo#sync default --- src/repo.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/repo.coffee b/src/repo.coffee index c739323..8f2e89e 100644 --- a/src/repo.coffee +++ b/src/repo.coffee @@ -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) =>