[BUG REPORT] "git ls-remote http://git.domain.com/repo.git HEAD" doesn't work
- From
Sven <svoop@delirium.ch>
- Date
- Jun 14, 2008, 07:03 UTC
- Message-ID
- <loom.20080614T065448-251@post.gmane.org>
Hi
Following up my recent post, I'm now pretty sure this is a bug. Apparently, ls-remote does not list the HEAD version when used over HTTP(S) whereas it does work otherwise. Check this out:
over HTTP - no HEAD listed here: git ls-remote http://www.kernel.org/pub/scm/git/git.git
over GIT - HEAD is listed in this case: git ls-remote git://github.com/lux/sitellite.git
As Capistrano relies on "git ls-remote http://git.domain.com/repo.git HEAD" to find out which version to pull, you can't deploy from Git over HTTP(S) repos for now. Capistrano is the de facto standard for deploying Ruby on Rails (and related) web applications.
Thanks a lot for looking into this!! (My knowledge unfortunately doesn't allow me to submit a patch myself.)
-sven