$ git clone -n https://src.fedoraproject.org/rpms/libnbd.git /var/lib/mock/f40-build-746915-112888/root/chroot_tmpdir/scmroot/libnbd Cloning into '/var/lib/mock/f40-build-746915-112888/root/chroot_tmpdir/scmroot/libnbd'... $ git reset --hard cacc31d129332fe6190cd6ec7b1c6576a134865f HEAD is now at cacc31d Remove patch upstream