Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] LsRemoteCommand

Hi list,

I'm trying to implement git-ls-remote[1] in jgit. Basically everything necessary should be in place (i.e. FetchProcess and Transport). I uploaded my implementation to https://bugs.eclipse.org/bugs/show_bug.cgi?id=343801 which basically works but fails if I only want to grab the remote tags.

I'm currently wondering what exactly is wrong so here are my suggestions

1.) In FetchProcess#executeImp() a variable "matched" is filled. This variable seems to hold exactly what I want, but this variable is simply gone after the method finished.

2.) My RefSpec ("refs/tags/*:refs/remotes/origin/tags/*") for fetching tags might be bogus. I'm not familiar with RefSpecs yet, but I thought this might be "The Right Thing (tm)". This refspec causes that none of the tags added to machted (see 1.) are added to askFor because they already exist locally.

Can someone point me out on what I'm doing wrong?

[1] http://www.kernel.org/pub/software/scm/git/docs/git-ls-remote.html

Thanks in advance,
 Christoph
-- 
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit 
gratis Handy-Flat! http://portal.gmx.net/de/go/dsl


Back to the top