[...] 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 9bc5acd use generic url fatal: HEAD does not point to a branch Available branches: AC-branch RA-branch master Searching for tag auto/ti/perl-Crypt-DES_EDE3-0.01-4... Searching for tag auto/ti/perl-Crypt-DES_EDE3-0_01-4... --2020-04-29 18:55:38-- http://distfiles.pld-linux.org/by-md5/f/d/fde1995efa0735407a5f7c4a4c8147bc/Crypt-DES_EDE3-0.01.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: 2328 (2.3K) [application/x-gzip] Saving to: 'Crypt-DES_EDE3-0.01.tar.gz' 0K .. 100% 293M=0s 2020-04-29 18:55:38 (293 MB/s) - 'Crypt-DES_EDE3-0.01.tar.gz' saved [2328/2328] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/perl-Crypt-DES_EDE3-0.01-4.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 9bc5acd use generic url fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/perl-Crypt-DES_EDE3-0.01-4 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.31371 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf Crypt-DES_EDE3-0.01 Begin-TLD-Builder-Info Build-Time: user:0.97s sys:0.39s real:2.34s (faults io:0 non-io:81507) Files queued for ftp: 7109 perl-Crypt-DES_EDE3-0.01-4.src.rpm 196 perl-Crypt-DES_EDE3-0.01-4.src.rpm.uploadinfo End-TLD-Builder-Info