$ git clone -n https://github.com/xcp-ng-rpms/xapi.git /var/lib/mock/v8.1-testing-2104-1592/root/chroot_tmpdir/scmroot/xapi Cloning into '/var/lib/mock/v8.1-testing-2104-1592/root/chroot_tmpdir/scmroot/xapi'... $ git reset --hard 39deb3c5dce6fb682f73d5137f9fda862b7a9fb6 Downloading SOURCES/xen-api-1.214.1.tar.gz (1.5 MB) HEAD is now at 39deb3c Put default values in create_from_record method as well