diff options
-rwxr-xr-x | build_files/utils/make_update.py | 4 |
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) |