I suggest moving this after `_cloneRepo` to address the issue described above.