[...] 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 8416360... - updated to 1.3.8 - removed obsolete xserver-1.19 patch fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/xorg-driver-video-trident-1.3.8-1... Searching for tag auto/ti/xorg-driver-video-trident-1_3_8-1... --2017-04-13 07:27:13-- http://distfiles.pld-linux.org/distfiles/by-md5/e/a/ea23158dc50a5bf48a0596b8375ff01f/xf86-video-trident-1.3.8.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: 387742 (379K) [application/x-bzip2] Saving to: 'xf86-video-trident-1.3.8.tar.bz2' 0K .......... .......... .......... .......... .......... 13% 1.05M 0s 50K .......... .......... .......... .......... .......... 26% 2.09M 0s 100K .......... .......... .......... .......... .......... 39% 128M 0s 150K .......... .......... .......... .......... .......... 52% 75.0M 0s 200K .......... .......... .......... .......... .......... 66% 2.13M 0s 250K .......... .......... .......... .......... .......... 79% 272M 0s 300K .......... .......... .......... .......... .......... 92% 148M 0s 350K .......... .......... ........ 100% 265M=0.09s 2017-04-13 07:27:13 (3.92 MB/s) - 'xf86-video-trident-1.3.8.tar.bz2' saved [387742/387742] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-driver-video-trident-1.3.8-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 8416360... - updated to 1.3.8 - removed obsolete xserver-1.19 patch fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-driver-video-trident-1.3.8-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.66642 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf xf86-video-trident-1.3.8 Begin-TLD-Builder-Info Build-Time: user:0.56s sys:0.13s real:1.75s (faults io:0 non-io:91361) Files queued for ftp: 394454 xorg-driver-video-trident-1.3.8-1.src.rpm 203 xorg-driver-video-trident-1.3.8-1.src.rpm.uploadinfo End-TLD-Builder-Info