aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libbe/cmdutil.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py
index 8268a1d..24eab64 100644
--- a/libbe/cmdutil.py
+++ b/libbe/cmdutil.py
@@ -27,6 +27,8 @@ def unique_name(bug, bugs):
continue
while (bug.uuid[:chars] == some_bug.uuid[:chars]):
chars+=1
+ if chars < 3:
+ chars = 3
return bug.uuid[:chars]
class UserError(Exception):