[...] state without impacting any branches by performing another checkout. 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 HEAD is now at 81d2bfd - release 2 (by relup.sh) fatal: HEAD does not point to a branch Available branches: AC-branch RA-branch master Searching for tag auto/ti/yodl-3.00.0-2... Searching for tag auto/ti/yodl-3_00_0-2... --2018-09-03 12:03:52-- http://distfiles.pld-linux.org/distfiles/by-md5/8/0/804703769e7995e25f5f5dd59ca3377c/yodl_3.00.0.orig.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: 294797 (288K) [application/x-gzip] Saving to: 'yodl_3.00.0.orig.tar.gz' 0K .......... .......... .......... .......... .......... 17% 1.20M 0s 50K .......... .......... .......... .......... .......... 34% 2.48M 0s 100K .......... .......... .......... .......... .......... 52% 39.0M 0s 150K .......... .......... .......... .......... .......... 69% 432M 0s 200K .......... .......... .......... .......... .......... 86% 2.57M 0s 250K .......... .......... .......... ....... 100% 52.9M=0.08s 2018-09-03 12:03:52 (3.46 MB/s) - 'yodl_3.00.0.orig.tar.gz' saved [294797/294797] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/yodl-3.00.0-2.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 81d2bfd - release 2 (by relup.sh) fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/yodl-3.00.0-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.18935 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf yodl-3.00.0 Begin-TLD-Builder-Info Build-Time: user:0.54s sys:0.04s real:1.86s (faults io:0 non-io:90034) Files queued for ftp: 300600 yodl-3.00.0-2.src.rpm 183 yodl-3.00.0-2.src.rpm.uploadinfo End-TLD-Builder-Info