[...] If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name HEAD is now at b0eabb8... - x32 rebuild - release 2 (by relup.sh) fatal: HEAD does not point to a branch Available branches: AC-branch PRE_2_4_18 RA-branch master Searching for tag auto/ti/dmapi-2.2.12-2... Searching for tag auto/ti/dmapi-2_2_12-2... --2017-11-09 13:22:48-- http://distfiles.pld-linux.org/distfiles/by-md5/c/d/cd825d4e141c16011367e0a0dd98c9c5/dmapi-2.2.12.tar.gz Resolving distfiles.pld-linux.org (distfiles.pld-linux.org)... 193.239.45.41 Connecting to distfiles.pld-linux.org (distfiles.pld-linux.org)|193.239.45.41|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 367318 (359K) [application/x-gzip] Saving to: 'dmapi-2.2.12.tar.gz' 0K .......... .......... .......... .......... .......... 13% 1.05M 0s 50K .......... .......... .......... .......... .......... 27% 2.10M 0s 100K .......... .......... .......... .......... .......... 41% 83.0M 0s 150K .......... .......... .......... .......... .......... 55% 74.9M 0s 200K .......... .......... .......... .......... .......... 69% 2.20M 0s 250K .......... .......... .......... .......... .......... 83% 87.0M 0s 300K .......... .......... .......... .......... .......... 97% 147M 0s 350K ........ 100% 213M=0.09s 2017-11-09 13:22:48 (3.72 MB/s) - 'dmapi-2.2.12.tar.gz' saved [367318/367318] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/dmapi-2.2.12-2.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at b0eabb8... - x32 rebuild - release 2 (by relup.sh) fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/dmapi-2.2.12-2 On detached HEAD. Use -r BRANCHNAME to override error: Macro %_builddir has empty body error: Macro %_builddir has empty body Executing(--clean): env -i TMP=/home/users/builder/tmp HOME=/home/users/builder PATH=/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin TMPDIR=/home/users/builder/tmp /bin/sh -e /home/users/builder/tmp/rpm-tmp.55582 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf dmapi-2.2.12 Begin-TLD-Builder-Info Build-Time: user:0.90s sys:0.30s real:2.44s (faults io:1 non-io:99775) Files queued for ftp: 373600 dmapi-2.2.12-2.src.rpm 184 dmapi-2.2.12-2.src.rpm.uploadinfo End-TLD-Builder-Info