Fixing cloneRepository failed call