[...] 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 HEAD is now at b3aba5a - group for devel fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/libipt-2.0-1... Searching for tag auto/ti/libipt-2_0-1... --2019-08-16 09:41:37-- http://distfiles.pld-linux.org/by-md5/d/7/d7cc87d42479d41870056a99591096cd/v2.0.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: 338965 (331K) [application/x-gzip] Saving to: 'v2.0.tar.gz' 0K .......... .......... .......... .......... .......... 15% 628K 0s 50K .......... .......... .......... .......... .......... 30% 1.22M 0s 100K .......... .......... .......... .......... .......... 45% 65.2M 0s 150K .......... .......... .......... .......... .......... 60% 33.6M 0s 200K .......... .......... .......... .......... .......... 75% 1.27M 0s 250K .......... .......... .......... .......... .......... 90% 59.7M 0s 300K .......... .......... .......... . 100% 50.4M=0.2s 2019-08-16 09:41:37 (2.00 MB/s) - 'v2.0.tar.gz' saved [338965/338965] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/libipt-2.0-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at b3aba5a - group for devel fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/libipt-2.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.2229 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf processor-trace-2.0 Begin-TLD-Builder-Info Build-Time: user:0.59s sys:0.08s real:2.11s (faults io:0 non-io:80306) Files queued for ftp: 340900 libipt-2.0-1.src.rpm 182 libipt-2.0-1.src.rpm.uploadinfo End-TLD-Builder-Info