aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/util/id.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/util/id.py')
-rw-r--r--libbe/util/id.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbe/util/id.py b/libbe/util/id.py
index 76079e7..9192ac8 100644
--- a/libbe/util/id.py
+++ b/libbe/util/id.py
@@ -232,6 +232,8 @@ def _truncate(uuid, other_uuids, min_length=3):
--------
_expand : inverse
"""
+ if min_length == -1:
+ return uuid
chars = min_length
for id in other_uuids:
if id == uuid: