X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/ac1bda22927d3fe382565c144da899e993c50da7..db6e1e360089e2b8679f6f6018e4fd12edae6510:/bin/mdw-build 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