$ git clone -n https://github.com/xcp-ng-rpms/xcp-ng-release.git /var/lib/mock/v8.1-base-1982-1366/root/chroot_tmpdir/scmroot/xcp-ng-release Cloning into '/var/lib/mock/v8.1-base-1982-1366/root/chroot_tmpdir/scmroot/xcp-ng-release'... $ git reset --hard 51a16ad6c852f2f0488ae37bcbcc78a62e501d44 Downloading SOURCES/xcp-ng-release-8.1.0.tar.gz (345 KB) HEAD is now at 51a16ad Move post scriptlet to posttrans to avoid script error