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 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?


Thanks in advance,
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit 
gratis Handy-Flat!

Back to the top