Skip to content

Commit

Permalink
Merge pull request #1011 from dkorolev/fix_gen_current_build
Browse files Browse the repository at this point in the history
Fixed `gen-current-build.sh`.
  • Loading branch information
dkorolev authored Aug 10, 2024
2 parents cbdc7f2 + de8ecea commit 2e0a38f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/gen-current-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ if [[ $? -ne 0 ]]; then
fi
COMPILER_INFO=${COMPILER_INFO//$'\n'/\\n} # JSON-friendly newlines.

GIT_COMMIT="$(git rev-parse HEAD 2>/dev/null || echo '<not under git>')"
GIT_BRANCH="$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo '<not under git>')"
GIT_STATUS="$(git status 2>/dev/null || echo '<not under git>')"
GIT_COMMIT="$( (git rev-parse HEAD 2>/dev/null || echo '<not under git>') | tail -n 1)"
GIT_BRANCH="$( (git rev-parse --abbrev-ref HEAD 2>/dev/null || echo '<not under git>') | tail -n 1)"
GIT_STATUS="$( (git status 2>/dev/null || echo '<not under git>') | tail -n 1)"

# NOTE(dkorolev): Removing the commands that may potentially run for a long time.
#GIT_DIFF_NAMES_MULTILINE="$(git diff --name-only 2>/dev/null || echo '<not under git>')"
Expand Down

0 comments on commit 2e0a38f

Please sign in to comment.