We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c9d4ae commit 51226c8Copy full SHA for 51226c8
build.sh
@@ -178,15 +178,15 @@ fi
178
###
179
BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M+00:00')"
180
181
-if [ -d ".git" ]; then
+if [ -d ".git" ] && [ -z "${SKIP_GIT}" ]; then
182
GIT_REF="$(git rev-parse HEAD)"
183
fi
184
185
# Read the project version from the `VERSION` file and trim it, see https://stackoverflow.com/a/3232433/172132
186
PROJECT_VERSION="${PROJECT_VERSION-$(sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' VERSION)}"
187
188
# Get the Git information from the netbox directory
189
-if [ -d "${NETBOX_PATH}/.git" ]; then
+if [ -d "${NETBOX_PATH}/.git" ] && [ -z "${SKIP_GIT}" ]; then
190
NETBOX_GIT_REF=$(
191
cd "${NETBOX_PATH}"
192
git rev-parse HEAD
0 commit comments