Skip to content

Commit

Permalink
Merge d1a478a into ddd3434
Browse files Browse the repository at this point in the history
  • Loading branch information
lipp committed Jul 21, 2016
2 parents ddd3434 + d1a478a commit 3cf68f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ module.exports.checkout = function (repoUrl, branch, dir) {
execThrow('git clean -fdx', options)
execThrow('git ' + ['fetch', '--all'].join(' '), options)
execThrow('git ' + ['checkout', branch].join(' '), options)
execThrow('git ' + ['pull', 'origin', branch].join(' '), options)
if (execThrow('git tag -l ' + branch, options) !== branch) {
execThrow('git ' + ['reset', '--hard', 'origin/' + branch].join(' '), options)
}
} else {
fse.mkdirsSync(gitDir)
execThrow('git ' + ['clone', repoUrl, './'].join(' '), options)
Expand Down

0 comments on commit 3cf68f9

Please sign in to comment.