Skip to content

Commit

Permalink
Merge pull request #629 from oanhnn/fix-issue-628
Browse files Browse the repository at this point in the history
Fixed issue #628 and change using `bin/git` in check git cache feature
  • Loading branch information
antonmedv committed Apr 19, 2016
2 parents cd7ec68 + 4321074 commit 1e5d10e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipe/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
env('env_vars', ''); // For Composer installation. Like SYMFONY_ENV=prod
env('composer_options', 'install --no-dev --verbose --prefer-dist --optimize-autoloader --no-progress --no-interaction');
env('git_cache', function () { //whether to use git cache - faster cloning by borrowing objects from existing clones.
$gitVersion = run('git version');
$gitVersion = run('{{bin/git}} version');
$regs = [];
if (preg_match('/((\d+\.?)+)/', $gitVersion, $regs)) {
$version = $regs[1];
Expand Down Expand Up @@ -169,7 +169,7 @@
* Update project code
*/
task('deploy:update_code', function () {
$repository = get('repository');
$repository = trim(get('repository'));
$branch = env('branch');
$git = env('bin/git');
$gitCache = env('git_cache');
Expand Down

0 comments on commit 1e5d10e

Please sign in to comment.