Re: cgit, invalid branches, and HTTP error code



Owen Taylor wrote:

> Hmm, cgit isn't *really* meant as a programmatic web interface to git.
> You can use 'git ls-remote' to check for existence. In shell:
> 
>   git ls-remote git://git.gnome.org/gtk+ refs/heads/$branchname | \
>      grep -q .  && echo "Branch exists"

Thanks, I updated JHBuild to work that way.


        Frederic


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]