Commit Diff


commit - 62baee9a86a9325d23bf2f048d28f38b978f707d
commit + faf51db5e8152629d9c4aa4672b3f26e6acecf10
blob - 039f1a53cff71ba556af241819016e47c9fab3bd
blob + 11fb8635050e0db41a982075ae634e1ecadb0b6b
--- regress/cmdline/common.sh
+++ regress/cmdline/common.sh
@@ -130,7 +130,7 @@ git_show_tree()
 
 trim_obj_id()
 {
-	expr "$2" : "\([0-9a-f]\{$1\}\)"
+	expr "$2" : "\([0-9a-f]\{1,$1\}\)"
 }
 
 pop_idx()