Community
Participate
Working Groups
->> git ls-remote -h http://localhost/hola.git HEAD Expected (this case, it's not found) -------- fatal: repository 'http://localhost/hola.git/' not found Fact ---- jgit ls-remote uri-ish [--help (-h)] [--timeout SERVICE] --help (-h) : display this help text --timeout SERVICE : abort connection if no activity
So when -h is specified in `git ls-remote -h`, it means --help. When it is specified with other arguments, it means --heads. Place to implement this: Class LsRemote. Probably best to use LsRemoteCommand, which already has setHeads and setTags methods for this. Patches for this are welcome, please see contributor guide: https://wiki.eclipse.org/EGit/Contributor_Guide
pushed patches for review use LsRemoteCommand: https://git.eclipse.org/r/#/c/36890/ add option --heads: https://git.eclipse.org/r/#/c/36891/ add option --tags: https://git.eclipse.org/r/#/c/36892/
(In reply to Matthias Sohn from comment #2) > pushed patches for review > > use LsRemoteCommand: https://git.eclipse.org/r/#/c/36890/ https://git.eclipse.org/r/#/c/37382/ merged as 816de9e9fae04260edd8e288c150e6f148fd04ce > add option --heads: https://git.eclipse.org/r/#/c/36891/ https://git.eclipse.org/r/#/c/37383/ merged as 490660a7c61d6226ac52d0e00198dd90a3891115 > add option --tags: https://git.eclipse.org/r/#/c/36892/ https://git.eclipse.org/r/#/c/37384/ merged as 8812e6f3f60dc6bc86ba57c3e82288780f735f6b