Commit Diff


commit - 9ca4ae7cc53a2209cc77cb16b81545fd15dcc192
commit + ebe4b21049f73b66d75d89f509ee7abf517c0d51
blob - 6d7e3725a2a7661724cf19cead5f07fd6bea97c1
blob + 89bd2dc5bdf5fc0bcee4f1c7c6190dd876910c33
--- regress/cmdline/common.sh
+++ regress/cmdline/common.sh
@@ -158,7 +158,7 @@ git_show_tree()
 
 trim_obj_id()
 {
-	expr "$2" : "\([0-9a-f]\{$1\}\)"
+	expr "$2" : "\([0-9a-f]\{1,$1\}\)"
 }
 
 pop_idx()