[...] 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 169ffda... up to 5.7p4, verbose files fatal: HEAD does not point to a branch Available branches: master --2015-07-28 11:48:58-- http://distfiles.pld-linux.org/distfiles/by-md5/9/d/9d818a143fbc5d830203fa2f4b4c6a2a/openntpd-5.7p4.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: 427900 (418K) [application/x-gzip] Saving to: 'openntpd-5.7p4.tar.gz' 0K .......... .......... .......... .......... .......... 11% 783K 0s 50K .......... .......... .......... .......... .......... 23% 1.49M 0s 100K .......... .......... .......... .......... .......... 35% 1.51M 0s 150K .......... .......... .......... .......... .......... 47% 1.60M 0s 200K .......... .......... .......... .......... .......... 59% 11.5M 0s 250K .......... .......... .......... .......... .......... 71% 1.71M 0s 300K .......... .......... .......... .......... .......... 83% 11.5M 0s 350K .......... .......... .......... .......... .......... 95% 10.9M 0s 400K .......... ....... 100% 944K=0.2s 2015-07-28 11:48:58 (1.86 MB/s) - 'openntpd-5.7p4.tar.gz' saved [427900/427900] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/openntpd-5.7p4-0.1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 169ffda... up to 5.7p4, verbose files fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/openntpd-5.7p4-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.4480 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf openntpd-5.7p4 Begin-PLD-Builder-Info Build-Time: user:3.01s sys:1.51s real:5.73s (faults io:0 non-io:237993) Files queued for ftp: 434192 openntpd-5.7p4-0.1.src.rpm 188 openntpd-5.7p4-0.1.src.rpm.uploadinfo End-PLD-Builder-Info