Skip to content

Commit

Permalink
Mark git tmp directory as safe for SRPM build
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Perina <[email protected]>
  • Loading branch information
mwperina committed Feb 1, 2024
1 parent 16eea2f commit bb9cf92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .automation/build-srpm.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash -xe

# Mark current directory as safe for git to be able to parse git hash
git config --global --add safe.directory $(pwd)

# When building on GitHub we should use GITHUB_SHA environment variable, otherwise parse has from git
if [ "${GITHUB_SHA}" == "" ]; then
GIT_HASH=$(git rev-list HEAD | wc -l)
Expand Down

0 comments on commit bb9cf92

Please sign in to comment.