[...] state without impacting any branches by performing another checkout. 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 8be0e5e... - rebuild with current glib2 and gdk-pixbuf2 - rel 4 fatal: HEAD does not point to a branch Available branches: AC-branch master Searching for tag auto/ti/libview-0.6.6-4... Searching for tag auto/ti/libview-0_6_6-4... --2018-01-26 14:17:47-- http://distfiles.pld-linux.org/distfiles/by-md5/1/2/12b0a1e03013ae315d5f9088261d4f2b/libview-0.6.6.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: 304958 (298K) [application/x-bzip2] Saving to: 'libview-0.6.6.tar.bz2' 0K .......... .......... .......... .......... .......... 16% 1.08M 0s 50K .......... .......... .......... .......... .......... 33% 2.16M 0s 100K .......... .......... .......... .......... .......... 50% 65.0M 0s 150K .......... .......... .......... .......... .......... 67% 44.8M 0s 200K .......... .......... .......... .......... .......... 83% 2.35M 0s 250K .......... .......... .......... .......... ....... 100% 53.0M=0.09s 2018-01-26 14:17:47 (3.18 MB/s) - 'libview-0.6.6.tar.bz2' saved [304958/304958] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/libview-0.6.6-4.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 8be0e5e... - rebuild with current glib2 and gdk-pixbuf2 - rel 4 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/libview-0.6.6-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.26890 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf libview-0.6.6 Begin-TLD-Builder-Info Build-Time: user:0.98s sys:0.32s real:2.39s (faults io:0 non-io:106200) Files queued for ftp: 311424 libview-0.6.6-4.src.rpm 185 libview-0.6.6-4.src.rpm.uploadinfo End-TLD-Builder-Info