[...] 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 6ed341c... - updated to 1.3.13 fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/libibmad-1.3.13-1... Searching for tag auto/ti/libibmad-1_3_13-1... --2017-11-08 12:38:58-- http://distfiles.pld-linux.org/distfiles/by-md5/2/9/29c7723ec08dac02403bb307e03c86cd/libibmad-1.3.13.tar.gz 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: 377708 (369K) [application/x-gzip] Saving to: 'libibmad-1.3.13.tar.gz' 0K .......... .......... .......... .......... .......... 13% 1.10M 0s 50K .......... .......... .......... .......... .......... 27% 2.18M 0s 100K .......... .......... .......... .......... .......... 40% 65.4M 0s 150K .......... .......... .......... .......... .......... 54% 96.3M 0s 200K .......... .......... .......... .......... .......... 67% 2.22M 0s 250K .......... .......... .......... .......... .......... 81% 215M 0s 300K .......... .......... .......... .......... .......... 94% 174M 0s 350K .......... ........ 100% 179M=0.09s 2017-11-08 12:38:58 (3.97 MB/s) - 'libibmad-1.3.13.tar.gz' saved [377708/377708] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/libibmad-1.3.13-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 6ed341c... - updated to 1.3.13 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/libibmad-1.3.13-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.39361 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf libibmad-1.3.13 Begin-TLD-Builder-Info Build-Time: user:0.77s sys:0.24s real:2.14s (faults io:0 non-io:81749) Files queued for ftp: 382201 libibmad-1.3.13-1.src.rpm 187 libibmad-1.3.13-1.src.rpm.uploadinfo End-TLD-Builder-Info