[...] 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 72fc4bb... - updated to 0.13.5 fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/xorg-lib-libpciaccess-0.13.5-1... Searching for tag auto/ti/xorg-lib-libpciaccess-0_13_5-1... --2017-04-13 07:26:14-- http://distfiles.pld-linux.org/distfiles/by-md5/d/8/d810ab17e24c1418dedf7207fb2841d4/libpciaccess-0.13.5.tar.bz2 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: 381729 (373K) [application/x-bzip2] Saving to: 'libpciaccess-0.13.5.tar.bz2' 0K .......... .......... .......... .......... .......... 13% 1.05M 0s 50K .......... .......... .......... .......... .......... 26% 2.17M 0s 100K .......... .......... .......... .......... .......... 40% 55.8M 0s 150K .......... .......... .......... .......... .......... 53% 81.6M 0s 200K .......... .......... .......... .......... .......... 67% 2.13M 0s 250K .......... .......... .......... .......... .......... 80% 224M 0s 300K .......... .......... .......... .......... .......... 93% 285M 0s 350K .......... .......... .. 100% 251M=0.09s 2017-04-13 07:26:15 (3.88 MB/s) - 'libpciaccess-0.13.5.tar.bz2' saved [381729/381729] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-lib-libpciaccess-0.13.5-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 72fc4bb... - updated to 0.13.5 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-lib-libpciaccess-0.13.5-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.84741 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf libpciaccess-0.13.5 Begin-TLD-Builder-Info Build-Time: user:0.56s sys:0.15s real:1.69s (faults io:0 non-io:88186) Files queued for ftp: 386924 xorg-lib-libpciaccess-0.13.5-1.src.rpm 200 xorg-lib-libpciaccess-0.13.5-1.src.rpm.uploadinfo End-TLD-Builder-Info