Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-09-13 14:13:03 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-09-13 14:14:17 +0300
commit603ae580ce557eb62cb323302dfcc0be265e7ea7 (patch)
treeac446e8a5d1401ac569ef002aa1c734ce3f7c655 /build_files/utils
parentb777df8080f221a99a6a87c0937868cd21bf5a2b (diff)
Build: show better "make update" error message when in detached HEAD state
Diffstat (limited to 'build_files/utils')
-rwxr-xr-xbuild_files/utils/make_update.py4
1 files changed, 4 insertions, 0 deletions
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)