$ git clone -n https://src.fedoraproject.org/rpms/apcupsd.git /var/lib/mock/f31-build-74923-31202/root/thebuilddir/tmp/scmroot/apcupsd Cloning into '/var/lib/mock/f31-build-74923-31202/root/thebuilddir/tmp/scmroot/apcupsd'... $ git reset --hard 48c9ebfc911d9261f22df254831eba3f7443af9c HEAD is now at 48c9ebf Work around RPM 4.15 change that broke the build