[...] 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 92aae75... - replaced lib64/libx32 patches with universal libdir patch; cover also UsrLibDir for x32 - release 2 fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/xorg-cf-files-1.0.6-2... Searching for tag auto/ti/xorg-cf-files-1_0_6-2... --2017-04-13 07:25:09-- http://distfiles.pld-linux.org/distfiles/by-md5/2/8/28649f34fa23143f1945aa2750e1472a/xorg-cf-files-1.0.6.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: 337859 (330K) [application/x-bzip2] Saving to: 'xorg-cf-files-1.0.6.tar.bz2' 0K .......... .......... .......... .......... .......... 15% 1.05M 0s 50K .......... .......... .......... .......... .......... 30% 2.11M 0s 100K .......... .......... .......... .......... .......... 45% 92.4M 0s 150K .......... .......... .......... .......... .......... 60% 92.2M 0s 200K .......... .......... .......... .......... .......... 75% 2.19M 0s 250K .......... .......... .......... .......... .......... 90% 139M 0s 300K .......... .......... ......... 100% 325M=0.09s 2017-04-13 07:25:09 (3.44 MB/s) - 'xorg-cf-files-1.0.6.tar.bz2' saved [337859/337859] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-cf-files-1.0.6-2.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 92aae75... - replaced lib64/libx32 patches with universal libdir patch; cover also UsrLibDir for x32 - release 2 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-cf-files-1.0.6-2 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.21270 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf xorg-cf-files-1.0.6 Begin-TLD-Builder-Info Build-Time: user:0.55s sys:0.15s real:1.81s (faults io:0 non-io:104411) Files queued for ftp: 345075 xorg-cf-files-1.0.6-2.src.rpm 191 xorg-cf-files-1.0.6-2.src.rpm.uploadinfo End-TLD-Builder-Info