Skip to content

Commit

Permalink
Fix branch deploy for clone strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Mar 1, 2023
1 parent fa2ce9a commit 2ac3b89
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions recipe/deploy/update_code.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@
cd('{{release_path}}');
run("$git clone -l $bare .");
run("$git remote set-url origin $repository", ['env' => $env]);

$target = get('branch', 'HEAD');

run("$git checkout --force $target");
} else {
throw new ConfigurationException(parse("Unknown `update_code_strategy` option: {{update_code_strategy}}."));
Expand Down

0 comments on commit 2ac3b89

Please sign in to comment.