@@ -13,14 +13,14 @@ discard block |
||
13 | 13 | // Cancel deployment if there would be no change to the codebase. |
14 | 14 | // This avoids unnecessary releases if the latest commit has already been deployed. |
15 | 15 | desc('Check remote head'); |
16 | -task('deploy:check_remote', function () { |
|
16 | +task('deploy:check_remote', function() { |
|
17 | 17 | $repository = get('repository'); |
18 | 18 | if (empty($repository)) { |
19 | 19 | throw new Exception("You need to specify a repository."); |
20 | 20 | } |
21 | 21 | |
22 | 22 | // Skip if there is no current deployment to compare |
23 | - if (! test('[ -d {{deploy_path}}/current/.git ]')) { |
|
23 | + if (!test('[ -d {{deploy_path}}/current/.git ]')) { |
|
24 | 24 | return; |
25 | 25 | } |
26 | 26 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | $remoteLs = null; |
43 | - on(localhost(), function () use (& $remoteLs, $opt, $repository, $ref) { |
|
43 | + on(localhost(), function() use (& $remoteLs, $opt, $repository, $ref) { |
|
44 | 44 | $getRemoteRevisionCmd = sprintf("%s ls-remote $opt $repository $ref", get('bin/git')); |
45 | 45 | $remoteLs = run($getRemoteRevisionCmd); |
46 | 46 | }); |