diff options
author | Jonathon Jongsma <jonathon@quotidian.org> | 2009-08-26 23:25:15 -0500 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2009-08-29 11:32:14 -0400 |
commit | 795ff39a29df7fdc5b854bd77534bc1939feebc7 (patch) | |
tree | 810fc2d225075f52ab257ad3cafe3584f2386da0 /.gitignore | |
parent | ff5b2c48fca8ff34134d981f8d1ac207b1d5e2a2 (diff) |
Improve error handling when bug reference is incorrect
If the user specifies the bug url on the command line but the url violates our
assumptions, git-bz doesn't currently handle it well. For instance, the
following commandline invocation:
git bz attach http://bugzilla.foo.org HEAD
will fail the regex that checks whether it is a bugzilla url (since it is
missing show_bug.cgi), so it will interpret it as a 'alias:1234'-style
reference. 'http' is interpreted as the alias, but when that is not found in
the git config, it will attempt to look up a browser cookie for the host 'http'.
That will also fail, but it will report a misleading error which is something like:
Please log in to 'http' in Firefox
This patch just does a little sanity checking that the bug id is a number and
aborts with a slightly more helpful error message if that is not true.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions