assets/utils: Validate sub-projects in isGitRepoUrl function
Previously URL of type https://forge.example.org/user/project/sub-project/ were not validated by the isGitRepoUrl function.
Related to #2331 (closed)
Migrated from D2878 (view on Phabricator)