We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
git clean
1 parent 37d08a4 commit 243045aCopy full SHA for 243045a
lib/Pomander/Scm/Git.php
@@ -34,8 +34,7 @@ public function update()
34
// Search revision
35
if(!empty($this->app->env->revision)) {
36
$commit = $this->app->env->revision;
37
- }
38
- else {
+ } else {
39
if(!empty($this->app["branch"])) {
40
$commit = $this->get_commit_sha($this->app["branch"]);
41
} elseif(!empty($this->app->env->branch)) {
@@ -52,7 +51,6 @@ public function update()
52
51
$cmd[] = 'git submodule update --init --recursive --quiet';
53
}
54
55
- $cmd[] = 'git clean -q -d -x -f';
56
$cmd[] = 'git log --date=relative --format=format:"%C(bold blue)(%ar)%C(reset) %an \'%s\' %C(bold green)(%h)%C(reset)" | head -1';
57
58
return implode(' && ', $cmd);
0 commit comments