Skip to content

Commit

Permalink
Bugfix on checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
aitrusgit committed Jan 28, 2020
1 parent b37f300 commit 21289e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/core/Descriptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ module.exports = {
if (fs.existsSync(target)) {
const repo = git(target);
await repo.checkout(config.descriptor.branch);
await repo.pull("origin", config.descriptor.branch);
await repo.pull(remote, config.descriptor.branch);
} else {
await git().clone(remote, target);
await git(target).checkout(config.descriptor.branch);
}

return new Promise((resolve, reject) => fs.readFile(path.join(target, "package.json"), (err, data) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "carryall",
"version": "1.1.0",
"version": "1.1.1",
"description": "An easy way to keep your environments in sync",
"main": "carryall-cli.js",
"license": "MIT",
Expand Down

0 comments on commit 21289e7

Please sign in to comment.