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:// refs/heads/$branchname | \
>      grep -q .  && echo "Branch exists"

Thanks, I updated JHBuild to work that way.


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