-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect 'git clone' prefix and ignore #6260
![:neckbeard: :neckbeard:](https://github.githubassets.com/images/icons/emoji/neckbeard.png)
Comments
![:neckbeard: :neckbeard:](https://github.githubassets.com/images/icons/emoji/neckbeard.png)
I personally feal that a user should handle this, but if someone writes a PR I would not block it. |
You should just include the URL. |
example string: git clone ssh://username@gerrit-server:/PROJECT |
Only include ssh://... |
Maybe it is possible to extend this to also detect the clone with hook from gerrit Example: "Clone with commit-msg hook": "git clone http://gerrithost:8080/${project} \u0026\u0026 scp -p -P 29418 jdoe@gerrithost:hooks/commit-msg ${project}/.git/hooks/" |
I'd be interested to work on this issue if it's not already assigned. I believe the fix should be as straightforward as detecting that git clone is in the URL and removing it. |
The base use case was just detecting git clone prefix if the following seem to be an url. |
![:neckbeard: :neckbeard:](https://github.githubassets.com/images/icons/emoji/neckbeard.png)
Current behaviour
I copy a branch from gerrit code review server (git clone ssh://...), want to clone a new repo and got and error ( it tries to execute git clone git clone ... )
Expected behaviour
The prefix git clone is detected automatically and will be ignored
Steps to reproduce
Copy and paste a link from gerrit
Screenshots
Did this work in previous version of GitExtensions
Current (3.xx)
Environment
Diagnostics
The text was updated successfully, but these errors were encountered: