$ git clone -n https://src.fedoraproject.org/rpms/widevine-installer.git /var/lib/mock/f40-build-760390-121097/root/chroot_tmpdir/scmroot/widevine-installer Cloning into '/var/lib/mock/f40-build-760390-121097/root/chroot_tmpdir/scmroot/widevine-installer'... $ git fetch origin c71617f1497fef82cfd0b4f8658b06ca33f72ca1:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/widevine-installer * [new ref] c71617f1497fef82cfd0b4f8658b06ca33f72ca1 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at c71617f Use environment.d instead of the bash profile; Fixes: RHBZ#2250529