From 493856f1b3051cb836b44ab48dcb9804513fbf4d Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 10 Apr 2020 17:51:22 +0100 Subject: [PATCH] mdw/build: Check out the `mdw-build' branch by hand. Later versions of Git leave the working tree empty after `git checkout -b'. Instead, just go through the necessary motions using the plumbing- level commands. --- bin/mdw-build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/mdw-build b/bin/mdw-build index 2af71e3..6a5a28a 100755 --- a/bin/mdw-build +++ b/bin/mdw-build @@ -302,7 +302,10 @@ case "$checkout" in run git clone -sn $srcpath/.git _source assign srcpath $releasepath/_source cd $srcpath - run git checkout -b mdw-build $checkoutrev + run git update-ref refs/heads/mdw-build $checkoutrev "" + run git symbolic-ref HEAD refs/heads/mdw-build + run git read-tree --reset refs/heads/mdw-build + run git checkout-index -afu assign gitversion "$(git describe --abbrev=4)" ;; esac -- 2.11.0