[...] You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this 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 7b9e290... - perl req/prov fix - release 3 (by relup.sh) fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/handlersocket-1.1.2-3... Searching for tag auto/ti/handlersocket-1_1_2-3... --2018-03-06 12:12:52-- http://distfiles.pld-linux.org/distfiles/by-md5/b/5/b5aa5df200ce59b25d5becead76724e5/handlersocket-1.1.2.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: 164376 (161K) [application/x-gzip] Saving to: 'handlersocket-1.1.2.tar.gz' 0K .......... .......... .......... .......... .......... 31% 1.21M 0s 50K .......... .......... .......... .......... .......... 62% 2.38M 0s 100K .......... .......... .......... .......... .......... 93% 217M 0s 150K .......... 100% 246M=0.06s 2018-03-06 12:12:52 (2.57 MB/s) - 'handlersocket-1.1.2.tar.gz' saved [164376/164376] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/handlersocket-1.1.2-3.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 7b9e290... - perl req/prov fix - release 3 (by relup.sh) fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/handlersocket-1.1.2-3 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.8035 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf HandlerSocket-Plugin-for-MySQL-1.1.2 Begin-TLD-Builder-Info Build-Time: user:0.98s sys:0.29s real:2.26s (faults io:0 non-io:82903) Files queued for ftp: 168328 handlersocket-1.1.2-3.src.rpm 191 handlersocket-1.1.2-3.src.rpm.uploadinfo End-TLD-Builder-Info