Skip to content

Commit 243045a

Browse files
committed
removing git clean to be less destructive.
1 parent 37d08a4 commit 243045a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Pomander/Scm/Git.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ public function update()
3434
// Search revision
3535
if(!empty($this->app->env->revision)) {
3636
$commit = $this->app->env->revision;
37-
}
38-
else {
37+
} else {
3938
if(!empty($this->app["branch"])) {
4039
$commit = $this->get_commit_sha($this->app["branch"]);
4140
} elseif(!empty($this->app->env->branch)) {
@@ -52,7 +51,6 @@ public function update()
5251
$cmd[] = 'git submodule update --init --recursive --quiet';
5352
}
5453

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

5856
return implode(' && ', $cmd);

0 commit comments

Comments
 (0)