Skip to content

Commit

Permalink
Update PluginSpecification.php
Browse files Browse the repository at this point in the history
Fixed a bug where deploying with git would reset the project repo.
  • Loading branch information
tamagokun committed Apr 16, 2014
1 parent cdf3210 commit 7c370ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Pomander/Wordpress/PluginSpecification.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function command_git($uri)
return array(
"rm -rf {$this->app->env->release_dir}/vendor/plugins/{$this->name}",
"git clone $uri {$this->app->env->release_dir}/vendor/plugins/{$this->name}",
"cd {$this->app->env->release_dir}/vendor/plugins/{$this->name}",
"git fetch origin && git reset --hard {$this->version}"
);
}
Expand Down

0 comments on commit 7c370ba

Please sign in to comment.