Skip to content

Instantly share code, notes, and snippets.

@eladmoshe
Created December 5, 2012 11:35
Show Gist options
  • Save eladmoshe/4214909 to your computer and use it in GitHub Desktop.
Save eladmoshe/4214909 to your computer and use it in GitHub Desktop.
test gist
updateBranch = function(repositoryDirectory, branchName, callback) {
git.checkout(repositoryDirectory, branchName, true, function(err) {
if (err) {
errorHandler.callError(err, callback);
return;
}
git.pull(repositoryDirectory, "origin", branchName, function(err) {
if (err) {
errorHandler.callError(err, callback);
return;
}
callback(null);
});
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment