[...] 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 HEAD is now at 0e86d6e - updated to 1.1.3 fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/cmocka-1.1.3-1... Searching for tag auto/ti/cmocka-1_1_3-1... --2019-03-21 19:24:54-- http://distfiles.pld-linux.org/by-md5/7/8/789b927cf2cefa613eb9a3cb4b1858fa/cmocka-1.1.3.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: 78744 (77K) [application/octet-stream] Saving to: 'cmocka-1.1.3.tar.xz' 0K .......... .......... .......... .......... .......... 65% 550K 0s 50K .......... .......... ...... 100% 213M=0.09s 2019-03-21 19:24:54 (844 KB/s) - 'cmocka-1.1.3.tar.xz' saved [78744/78744] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/cmocka-1.1.3-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 0e86d6e - updated to 1.1.3 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/cmocka-1.1.3-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.19729 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf cmocka-1.1.3 Begin-TLD-Builder-Info Build-Time: user:0.58s sys:0.08s real:4.15s (faults io:188 non-io:83400) Files queued for ftp: 83416 cmocka-1.1.3-1.src.rpm 184 cmocka-1.1.3-1.src.rpm.uploadinfo End-TLD-Builder-Info