[...] 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 78f622d... - updated to 1.5.3 fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/xorg-driver-video-cirrus-1.5.3-1... Searching for tag auto/ti/xorg-driver-video-cirrus-1_5_3-1... --2018-03-15 09:16:25-- http://distfiles.pld-linux.org/distfiles/by-md5/7/d/7d7dfd4cdc42aa8b6e923510fa00ad2b/xf86-video-cirrus-1.5.3.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: 338930 (331K) [application/x-bzip2] Saving to: 'xf86-video-cirrus-1.5.3.tar.bz2' 0K .......... .......... .......... .......... .......... 15% 1.20M 0s 50K .......... .......... .......... .......... .......... 30% 2.38M 0s 100K .......... .......... .......... .......... .......... 45% 73.8M 0s 150K .......... .......... .......... .......... .......... 60% 97.9M 0s 200K .......... .......... .......... .......... .......... 75% 2.49M 0s 250K .......... .......... .......... .......... .......... 90% 76.0M 0s 300K .......... .......... .......... 100% 172M=0.08s 2018-03-15 09:16:25 (3.91 MB/s) - 'xf86-video-cirrus-1.5.3.tar.bz2' saved [338930/338930] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-driver-video-cirrus-1.5.3-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 78f622d... - updated to 1.5.3 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-driver-video-cirrus-1.5.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.84141 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf xf86-video-cirrus-1.5.3 Begin-TLD-Builder-Info Build-Time: user:0.74s sys:0.23s real:2.21s (faults io:0 non-io:91466) Files queued for ftp: 344177 xorg-driver-video-cirrus-1.5.3-1.src.rpm 202 xorg-driver-video-cirrus-1.5.3-1.src.rpm.uploadinfo End-TLD-Builder-Info