Include username in HTTP/HTTPS clone URLs if project security is set to Internal or Private
When a project is configured as Internal or Private a username/password must be provided for the git clone. As these projects require a user account to clone, including the username in the displayed clone URL will streamline the clone process (for some clients).
Example: When logged in to gitlab and viewing projects, the gitlab https URL provided for clone does not provide a username, eg:
https://gitlab.com/gitlab-org/gitlab-ce.git
If the project is 'Internal' or 'Private' the username of the currently logged in user can be added to the clone URL, eg:
https://username@gitlab.com/gitlab-org/gitlab-ce.git
This enhancement could also be made to the clone URLs provided under the 'HTTP' tab for the 'empty project' / 'command line instructions' page.
This may not make sense for all git clients, so adding this as configurable option would keep existing functionality for those users who don't want the username included.