[...] 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 f746187... - updated dependencies fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/xorg-driver-input-keyboard-1.9.0-1... Searching for tag auto/ti/xorg-driver-input-keyboard-1_9_0-1... --2018-03-15 09:15:02-- http://distfiles.pld-linux.org/distfiles/by-md5/a/3/a3a3f0dd32361dcdbd406e894dafe090/xf86-input-keyboard-1.9.0.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: 341693 (334K) [application/x-bzip2] Saving to: 'xf86-input-keyboard-1.9.0.tar.bz2' 0K .......... .......... .......... .......... .......... 14% 1.20M 0s 50K .......... .......... .......... .......... .......... 29% 2.43M 0s 100K .......... .......... .......... .......... .......... 44% 19.4M 0s 150K .......... .......... .......... .......... .......... 59% 385M 0s 200K .......... .......... .......... .......... .......... 74% 2.68M 0s 250K .......... .......... .......... .......... .......... 89% 59.4M 0s 300K .......... .......... .......... ... 100% 52.1M=0.08s 2018-03-15 09:15:02 (3.93 MB/s) - 'xf86-input-keyboard-1.9.0.tar.bz2' saved [341693/341693] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-driver-input-keyboard-1.9.0-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at f746187... - updated dependencies fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-driver-input-keyboard-1.9.0-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.28245 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf xf86-input-keyboard-1.9.0 Begin-TLD-Builder-Info Build-Time: user:0.60s sys:0.14s real:4.00s (faults io:26 non-io:91634) Files queued for ftp: 346614 xorg-driver-input-keyboard-1.9.0-1.src.rpm 204 xorg-driver-input-keyboard-1.9.0-1.src.rpm.uploadinfo End-TLD-Builder-Info