[...] 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 42c4b5d... - x32 rebuild - release 2 (by relup.sh) fatal: HEAD does not point to a branch Available branches: master --2015-05-08 07:01:08-- http://distfiles.pld-linux.org/distfiles/by-md5/1/f/1f65be5ffc55641c1846c2f41d180d00/libpciaccess-0.13.3.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: 368755 (360K) [application/x-bzip2] Saving to: 'libpciaccess-0.13.3.tar.bz2' 0K .......... .......... .......... .......... .......... 13% 139K 2s 50K .......... .......... .......... .......... .......... 27% 151K 2s 100K .......... .......... .......... .......... .......... 41% 151K 1s 150K .......... .......... .......... .......... .......... 55% 128K 1s 200K .......... .......... .......... .......... .......... 69% 152K 1s 250K .......... .......... .......... .......... .......... 83% 128K 0s 300K .......... .......... .......... .......... .......... 97% 152K 0s 350K .......... 100% 35.0K=2.7s 2015-05-08 07:01:11 (131 KB/s) - 'libpciaccess-0.13.3.tar.bz2' saved [368755/368755] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-lib-libpciaccess-0.13.3-2.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 42c4b5d... - x32 rebuild - release 2 (by relup.sh) fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-lib-libpciaccess-0.13.3-2 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.60285 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf libpciaccess-0.13.3 Begin-PLD-Builder-Info Build-Time: user:2.62s sys:1.25s real:17.37s (faults io:0 non-io:186020) Files queued for ftp: 374074 xorg-lib-libpciaccess-0.13.3-2.src.rpm 200 xorg-lib-libpciaccess-0.13.3-2.src.rpm.uploadinfo End-PLD-Builder-Info