[Bf-blender-cvs] [603ae580ce5] master: Build: show better "make update" error message when in detached HEAD state
Brecht Van Lommel
noreply at git.blender.org
Mon Sep 13 13:26:48 CEST 2021
Commit: 603ae580ce557eb62cb323302dfcc0be265e7ea7
Author: Brecht Van Lommel
Date: Mon Sep 13 13:13:03 2021 +0200
Branches: master
https://developer.blender.org/rB603ae580ce557eb62cb323302dfcc0be265e7ea7
Build: show better "make update" error message when in detached HEAD state
===================================================================
M build_files/utils/make_update.py
===================================================================
diff --git a/build_files/utils/make_update.py b/build_files/utils/make_update.py
index b901fa56f52..a6399790bc9 100755
--- a/build_files/utils/make_update.py
+++ b/build_files/utils/make_update.py
@@ -222,6 +222,10 @@ if __name__ == "__main__":
# Test if we are building a specific release version.
branch = make_utils.git_branch(args.git_command)
+ if branch == 'HEAD':
+ sys.stderr.write('Blender git repository is in detached HEAD state, must be in a branch\n')
+ sys.exit(1)
+
tag = make_utils.git_tag(args.git_command)
release_version = make_utils.git_branch_release_version(branch, tag)
More information about the Bf-blender-cvs
mailing list