[...] 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 37ae2e2... - updated to 1.2.3 (bounds checking fixes) fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/xorg-lib-libXtst-1.2.3-1... Searching for tag auto/ti/xorg-lib-libXtst-1_2_3-1... --2017-04-13 07:26:09-- http://distfiles.pld-linux.org/distfiles/by-md5/e/f/ef8c2c1d16a00bd95b9fdcef63b8a2ca/libXtst-1.2.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: 321819 (314K) [application/x-bzip2] Saving to: 'libXtst-1.2.3.tar.bz2' 0K .......... .......... .......... .......... .......... 15% 1.05M 0s 50K .......... .......... .......... .......... .......... 31% 2.10M 0s 100K .......... .......... .......... .......... .......... 47% 76.8M 0s 150K .......... .......... .......... .......... .......... 63% 134M 0s 200K .......... .......... .......... .......... .......... 79% 2.15M 0s 250K .......... .......... .......... .......... .......... 95% 243M 0s 300K .......... .... 100% 387M=0.09s 2017-04-13 07:26:09 (3.27 MB/s) - 'libXtst-1.2.3.tar.bz2' saved [321819/321819] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-lib-libXtst-1.2.3-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 37ae2e2... - updated to 1.2.3 (bounds checking fixes) fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-lib-libXtst-1.2.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.98961 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf libXtst-1.2.3 Begin-TLD-Builder-Info Build-Time: user:0.54s sys:0.17s real:1.93s (faults io:0 non-io:90518) Files queued for ftp: 327513 xorg-lib-libXtst-1.2.3-1.src.rpm 194 xorg-lib-libXtst-1.2.3-1.src.rpm.uploadinfo End-TLD-Builder-Info