diff --git a/.automation/build-srpm.sh b/.automation/build-srpm.sh index f10aecb..37cb38c 100755 --- a/.automation/build-srpm.sh +++ b/.automation/build-srpm.sh @@ -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)