[...] If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at c6c400b - updated to 0.009 fatal: HEAD does not point to a branch Available branches: AC-branch master Searching for tag auto/ti/perl-Net-DNS-Resolver-Programmable-0.009-1... Searching for tag auto/ti/perl-Net-DNS-Resolver-Programmable-0_009-1... --2020-04-29 19:03:50-- http://distfiles.pld-linux.org/by-md5/f/4/f42a7e7984c258db0ef127b217a2bcb4/Net-DNS-Resolver-Programmable-0.009.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: 15770 (15K) [application/x-gzip] Saving to: 'Net-DNS-Resolver-Programmable-0.009.tar.gz' 0K .......... ..... 100% 689K=0.02s 2020-04-29 19:03:50 (689 KB/s) - 'Net-DNS-Resolver-Programmable-0.009.tar.gz' saved [15770/15770] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/perl-Net-DNS-Resolver-Programmable-0.009-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at c6c400b - updated to 0.009 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/perl-Net-DNS-Resolver-Programmable-0.009-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.4781 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf Net-DNS-Resolver-Programmable-0.009 Begin-TLD-Builder-Info Build-Time: user:0.86s sys:0.29s real:2.64s (faults io:61 non-io:72352) Files queued for ftp: 20884 perl-Net-DNS-Resolver-Programmable-0.009-1.src.rpm 212 perl-Net-DNS-Resolver-Programmable-0.009-1.src.rpm.uploadinfo End-TLD-Builder-Info