summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-bz3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-bz b/git-bz
index 751af8d..e91cce3 100755
--- a/git-bz
+++ b/git-bz
@@ -481,6 +481,9 @@ def resolve_bug_reference(bug_reference):
tracker = get_tracker()
id = bug_reference
+ if not id.isdigit():
+ die("Invalid bug reference '%s'" % bug_reference)
+
host = resolve_host_alias(tracker)
https = tracker_uses_https(tracker)