$ git clone -n https://github.com/xcp-ng-rpms/xapi.git /var/lib/mock/v8.0-testing-2106-1581/root/chroot_tmpdir/scmroot/xapi Cloning into '/var/lib/mock/v8.0-testing-2106-1581/root/chroot_tmpdir/scmroot/xapi'... $ git reset --hard 9acbdd1445bd948deff1ce90523db22b4e44eaab Downloading SOURCES/xen-api-1.160.2.tar.gz (1.6 MB) HEAD is now at 9acbdd1 Put default values in create_from_record method as well