Re: cgit, invalid branches, and HTTP error code
- From: Frederic Peters <fpeters gnome org>
- To: gnome-infrastructure gnome org
- Subject: Re: cgit, invalid branches, and HTTP error code
- Date: Fri, 17 Apr 2009 00:15:04 +0200
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]