Skip to content

Commit

Permalink
Don't show the complete output of deleting superflous tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 21, 2014
1 parent 302cc27 commit 9221236
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions framework/bin/horde-git-split
Expand Up @@ -97,14 +97,15 @@ foreach (array_filter(explode("\n", shell_exec('git tag -l'))) as $val) {
$delete[] = escapeshellarg($val);
}
if (count($delete)) {
passthru('git tag -d ' . implode(' ', $delete));
printf("Deleting %d tags...\n", count($delete));
shell_exec('git tag -d ' . implode(' ', $delete));
}

$delete = array();
foreach (array_filter(explode("\n", shell_exec('git branch --no-color'))) as $val) {
$val = trim(preg_replace("/^\s*\*\s/", '', $val));
if (!in_array($val, $branch_keep)) {
$delete[] = $val;
$delete[] = escapeshellarg($val);
}
}
if (count($delete)) {
Expand Down

0 comments on commit 9221236

Please sign in to comment.