mirror of
https://git.icinga.com/packaging/rpm-icingaweb2.git
synced 2025-07-28 16:34:06 +02:00
get_snapshot: Add UPSTREAM_GIT_NOREPO to forbid any repo interaction
This commit is contained in:
parent
df902f3daf
commit
445f7bdcfa
@ -31,6 +31,7 @@ workdir=`pwd`
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
if [ -z "$UPSTREAM_GIT_NOREPO" ]; then
|
||||||
if [ -d "${PROJECT}.git/" ]; then
|
if [ -d "${PROJECT}.git/" ]; then
|
||||||
cd "${PROJECT}.git"
|
cd "${PROJECT}.git"
|
||||||
if [ ! -d .git ]; then
|
if [ ! -d .git ]; then
|
||||||
@ -53,6 +54,7 @@ else
|
|||||||
echo "Missing '${PROJECT}.git' directory!" >&2
|
echo "Missing '${PROJECT}.git' directory!" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
git_version=$(git describe --tags "${UPSTREAM_GIT_BRANCH}")
|
git_version=$(git describe --tags "${UPSTREAM_GIT_BRANCH}")
|
||||||
package_version=$(echo "$git_version" | sed -e 's/^v//' -e 's/-/./g')
|
package_version=$(echo "$git_version" | sed -e 's/^v//' -e 's/-/./g')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user