[...] 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 317517e... - up to 1.6.3 fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/xorg-driver-input-joystick-1.6.3-1... Searching for tag auto/ti/xorg-driver-input-joystick-1_6_3-1... --2018-03-15 09:14:54-- http://distfiles.pld-linux.org/distfiles/by-md5/e/8/e84745a9e977c1bcd69a72c75033be85/xf86-input-joystick-1.6.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: 351846 (344K) [application/x-bzip2] Saving to: 'xf86-input-joystick-1.6.3.tar.bz2' 0K .......... .......... .......... .......... .......... 14% 1.21M 0s 50K .......... .......... .......... .......... .......... 29% 2.43M 0s 100K .......... .......... .......... .......... .......... 43% 192M 0s 150K .......... .......... .......... .......... .......... 58% 57.2M 0s 200K .......... .......... .......... .......... .......... 72% 2.52M 0s 250K .......... .......... .......... .......... .......... 87% 94.0M 0s 300K .......... .......... .......... .......... ... 100% 65.2M=0.08s 2018-03-15 09:14:54 (4.08 MB/s) - 'xf86-input-joystick-1.6.3.tar.bz2' saved [351846/351846] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-driver-input-joystick-1.6.3-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 317517e... - up to 1.6.3 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-driver-input-joystick-1.6.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.81247 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf xf86-input-joystick-1.6.3 Begin-TLD-Builder-Info Build-Time: user:0.54s sys:0.12s real:2.44s (faults io:71 non-io:91689) Files queued for ftp: 356758 xorg-driver-input-joystick-1.6.3-1.src.rpm 204 xorg-driver-input-joystick-1.6.3-1.src.rpm.uploadinfo End-TLD-Builder-Info