Skip to content

Commit

Permalink
Disable git error messages in log file (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed May 30, 2024
1 parent 5ec0660 commit b491e5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/Utils/GitVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ class GitVersion {

private static function extractVersion() {
return array_filter([
"version" => trim(`git tag --points-at HEAD | head -1` ?? ""),
"branch" => trim(`git rev-parse --abbrev-ref HEAD` ?? ""),
"clean" => trim(`git diff --quiet && echo true` ?? ""),
"commit" => trim(`git rev-parse HEAD` ?? ""),
"version" => trim(`git tag --points-at HEAD 2>/dev/null | head -1` ?? ""),
"branch" => trim(`git rev-parse --abbrev-ref HEAD 2>/dev/null` ?? ""),
"clean" => trim(`git diff --quiet 2>/dev/null && echo true` ?? ""),
"commit" => trim(`git rev-parse HEAD 2>/dev/null` ?? ""),
]);
}

Expand Down

0 comments on commit b491e5d

Please sign in to comment.