summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-25 11:10:25 +0100
committerGitHub <noreply@github.com>2024-02-25 11:10:25 +0100
commit41ec6885b4ddaff7448aa2c2d2c1cbc54559bb0a (patch)
tree1c5e4bd64e0ebd672265bf8ea0b70495aa954767
parentb5d545836916db82251354e8c12b1969d42bc1f7 (diff)
parentb6e6b62b689d8da0d3488c0039307308c3e9ae21 (diff)
downloadvyos-build-41ec6885b4ddaff7448aa2c2d2c1cbc54559bb0a.tar.gz
vyos-build-41ec6885b4ddaff7448aa2c2d2c1cbc54559bb0a.zip
Merge pull request #510 from vyos/mergify/bp/sagitta/pr-509
T6064: add build error if branch information from Git repository is missing (backport #509)
-rwxr-xr-xscripts/build-vyos-image3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image
index 0f96cd68..8e299180 100755
--- a/scripts/build-vyos-image
+++ b/scripts/build-vyos-image
@@ -277,10 +277,9 @@ if __name__ == "__main__":
# Retrieve git branch name
git_branch = repo.active_branch.name
except Exception as e:
- print("Could not retrieve information from git: {0}".format(str(e)))
+ exit(f'Could not retrieve information from git: {e}')
build_git = ""
git_branch = ""
- git_commit = ""
# Create the build version string
if build_config['build_type'] == 'development':