[...] 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 3d5a773... - due to xserver 1.17 - release 8 (by relup.sh) fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/xorg-driver-video-tga-1.2.2-8... Searching for tag auto/ti/xorg-driver-video-tga-1_2_2-8... --2018-03-15 09:20:12-- http://distfiles.pld-linux.org/distfiles/by-md5/f/7/f77d66e86ed0485b204b17e734aa47df/xf86-video-tga-1.2.2.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: 318943 (311K) [application/x-bzip2] Saving to: 'xf86-video-tga-1.2.2.tar.bz2' 0K .......... .......... .......... .......... .......... 16% 1.21M 0s 50K .......... .......... .......... .......... .......... 32% 2.41M 0s 100K .......... .......... .......... .......... .......... 48% 78.0M 0s 150K .......... .......... .......... .......... .......... 64% 38.7M 0s 200K .......... .......... .......... .......... .......... 80% 2.63M 0s 250K .......... .......... .......... .......... .......... 96% 124M 0s 300K .......... . 100% 84.6M=0.08s 2018-03-15 09:20:12 (3.72 MB/s) - 'xf86-video-tga-1.2.2.tar.bz2' saved [318943/318943] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-driver-video-tga-1.2.2-8.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 3d5a773... - due to xserver 1.17 - release 8 (by relup.sh) fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-driver-video-tga-1.2.2-8 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.43388 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf xf86-video-tga-1.2.2 Begin-TLD-Builder-Info Build-Time: user:0.51s sys:0.10s real:1.94s (faults io:3 non-io:99223) Files queued for ftp: 324963 xorg-driver-video-tga-1.2.2-8.src.rpm 199 xorg-driver-video-tga-1.2.2-8.src.rpm.uploadinfo End-TLD-Builder-Info