diff --git a/lib/service/repoCaches/gitRepoCache.js b/lib/service/repoCaches/gitRepoCache.js index 91f78e7..17b1432 100644 --- a/lib/service/repoCaches/gitRepoCache.js +++ b/lib/service/repoCaches/gitRepoCache.js @@ -131,7 +131,6 @@ module.exports = function GitRepoCache(options) { if(fs.existsSync(packageDirPath)) { fetchRepository() .then(hardResetRepository) - .then(pullRepository) .then(function() { logger.log('Pulled latest for {0}'.format(path.basename(packageDirectory))); resolve(); @@ -155,11 +154,7 @@ module.exports = function GitRepoCache(options) { } function hardResetRepository() { - return utils.exec('git reset --hard', packageDirPath); - } - - function pullRepository() { - return utils.exec('git pull', packageDirPath); + return utils.exec('git reset --hard origin/master', packageDirPath); } } }