git-bz: Bugzilla subcommand for Git

Update: For current documentation, see:

Now that gnome-shell development is in full swing, I’ve been spending a lot of time creating patches with git and git-svn, and then pasting the git-format-patch results into Bugzilla. That seemed like a highly automatable task. git-send-bugzilla wasn’t really what I was looking for. Hence, git-bz:

# File the last commit as a new bug on the default tracker
git bz file my-product/some-component HEAD^

# Attach a series of patches to an existing bug
git bz attach b50ea9bd^

# Prompt if you want to apply each patch attachment from a bug
git bz apply bgo:1234

Just the script:
GIt repository: git clone git://

I haven’t tested with anything but yet; expect some things to need fixing.


  1. ulrik
    Posted November 16, 2008 at 11:28 am | Permalink

    post it to the git mailing list, there are certainly people that are interested!

  2. Zeeshan Ali (Khattak
    Posted November 16, 2008 at 3:28 pm | Permalink

    Cool stuff! Don’t know of others but something really useful for me at least.

  3. Posted November 16, 2008 at 4:49 pm | Permalink

    git-bugzilla has been around for a while, and used by a few people at gnome, including behdad, chpe and myself.;a=summary

  4. Florian Steinel
    Posted November 24, 2008 at 4:33 pm | Permalink

    I’m trying to port this from httplib to urllib2.

  5. Tobu
    Posted April 7, 2009 at 9:45 am | Permalink

    Neat. Is there an equivalent tool for patch-bombing google code?

  6. Posted September 30, 2009 at 1:34 pm | Permalink

    Wow. I didn’t even have to provide Bugzilla credentials. It’s amazing what you could do just with cookies.

  7. sebn
    Posted April 14, 2010 at 2:59 pm | Permalink

    I got the following error:

    Error getting login cookie from browser:
    /home/sebn/.gnome2/epiphany/mozilla/epiphany/cookies.sqlite doesn’t exist

    $ cd ~/.gnome2/epiphany/
    $ mkdir mozilla
    $ cd mozilla/
    $ ln -s .. epiphany

    Now it works 🙂

  8. Posted June 4, 2010 at 3:16 pm | Permalink

    Great tool. Is there any possibility to write a message when attaching the patch?

  9. Owen
    Posted June 5, 2010 at 10:57 am | Permalink

    I’m closing this bug for further comments. For submitting patches, reporting problems, or making suggestions for improvements, see:

    (search for duplicates first.) For anything else related to git-bz, you can mail me personally.

%d bloggers like this: