If you're using Perforce as your repository server instead of Git, you may encounter the following error while attempting to scan a local directory:
We couldn't locate any valid cloned repositories within the below specified directory. Please ensure your repositories are copied into the designated path and click 'scan' again.
CodeScene expects repositories to be in Git format. Since Perforce operates differently, the scan cannot detect the repositories in their current format.
To resolve this issue, you need to create Git mirrors of your Perforce repositories. This allows CodeScene to recognize and analyze the codebase properly.
You can achieve this in one of two ways:
-
Using Git Fusion
Git Fusion is an official tool provided by Perforce that allows users to create a Git interface to Perforce repositories. It enables bidirectional syncing between Perforce and Git. -
Using git-p4
git-p4
is a Git tool that allows you to interact with Perforce depots using Git commands. It enables fetching changes from Perforce into a Git repository and pushing commits back if needed.
By implementing one of these methods, you can successfully integrate your Perforce repositories into Git-based workflows and avoid the scanning error.