From 603ae580ce557eb62cb323302dfcc0be265e7ea7 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 13 Sep 2021 13:13:03 +0200 Subject: Build: show better "make update" error message when in detached HEAD state --- build_files/utils/make_update.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build_files/utils') 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) -- cgit v1.2.3