Skip to content

Commit

Permalink
removing git clean to be less destructive.
Browse files Browse the repository at this point in the history
  • Loading branch information
tamagokun committed Jan 20, 2014
1 parent 37d08a4 commit 243045a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Pomander/Scm/Git.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public function update()
// Search revision
if(!empty($this->app->env->revision)) {
$commit = $this->app->env->revision;
}
else {
} else {
if(!empty($this->app["branch"])) {
$commit = $this->get_commit_sha($this->app["branch"]);
} elseif(!empty($this->app->env->branch)) {
Expand All @@ -52,7 +51,6 @@ public function update()
$cmd[] = 'git submodule update --init --recursive --quiet';
}

$cmd[] = 'git clean -q -d -x -f';
$cmd[] = 'git log --date=relative --format=format:"%C(bold blue)(%ar)%C(reset) %an \'%s\' %C(bold green)(%h)%C(reset)" | head -1';

return implode(' && ', $cmd);
Expand Down

0 comments on commit 243045a

Please sign in to comment.