From be0337f39091a91b780d55ef4baece05b25a3211 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Sat, 19 Dec 2009 17:22:28 +0100 Subject: [PATCH 1/2] Do not default to GNOME bugzilla --- git-send-bugzilla.pl | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/git-send-bugzilla.pl b/git-send-bugzilla.pl index c26af96..8f30460 100755 --- a/git-send-bugzilla.pl +++ b/git-send-bugzilla.pl @@ -37,7 +37,7 @@ sub authenticate { } print STDERR "Logging in as $username...\n"; - $mech->get("$url/index.cgi?GoAheadAndLogIn=1"); + $mech->get("$url?GoAheadAndLogIn=1"); die "Can't fetch login form: ", $mech->res->status_line unless $mech->success; @@ -106,7 +106,7 @@ sub add_attachment { unless $mech->success; die "Error while attaching patch. Aborting\n" - unless $mech->title =~ /Changes Submitted/i; + unless $mech->title =~ /(Changes Submitted|Attachment \d+ added)/i; } sub read_repo_config { @@ -131,7 +131,14 @@ sub usage { exit $exitcode; } -$url = read_repo_config 'url', 'str', 'http://bugzilla.gnome.org'; +$url = read_repo_config 'url'; +die <