[...] 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 new_branch_name HEAD is now at a93d46a... - updated to 0.2.10 fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/libdatrie-0.2.10-1... Searching for tag auto/ti/libdatrie-0_2_10-1... --2018-04-07 13:13:27-- http://distfiles.pld-linux.org/distfiles/by-md5/2/2/22d4fca2a09c58584a461b115d3d57f1/libdatrie-0.2.10.tar.xz 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: 294380 (287K) [application/octet-stream] Saving to: 'libdatrie-0.2.10.tar.xz' 0K .......... .......... .......... .......... .......... 17% 1.21M 0s 50K .......... .......... .......... .......... .......... 34% 2.39M 0s 100K .......... .......... .......... .......... .......... 52% 65.3M 0s 150K .......... .......... .......... .......... .......... 69% 1.20M 0s 200K .......... .......... .......... .......... .......... 86% 179M 0s 250K .......... .......... .......... ....... 100% 148M=0.1s 2018-04-07 13:13:28 (2.73 MB/s) - 'libdatrie-0.2.10.tar.xz' saved [294380/294380] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/libdatrie-0.2.10-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at a93d46a... - updated to 0.2.10 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/libdatrie-0.2.10-1 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.837 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf libdatrie-0.2.10 Begin-TLD-Builder-Info Build-Time: user:0.97s sys:0.27s real:2.77s (faults io:0 non-io:84762) Files queued for ftp: 300118 libdatrie-0.2.10-1.src.rpm 188 libdatrie-0.2.10-1.src.rpm.uploadinfo End-TLD-Builder-Info