]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3305-notes-fanout.sh
The seventh batch
[thirdparty/git.git] / t / t3305-notes-fanout.sh
index 22ffe5bcb9908d914585dbc90e59194023bd9ff5..1ec1fb6715efda8a0ec546956a0deece76efefff 100755 (executable)
@@ -9,7 +9,7 @@ path_has_fanout() {
        path=$1 &&
        fanout=$2 &&
        after_last_slash=$(($(test_oid hexsz) - $fanout * 2)) &&
-       echo $path | grep -q "^\([0-9a-f]\{2\}/\)\{$fanout\}[0-9a-f]\{$after_last_slash\}$"
+       echo $path | grep -q -E "^([0-9a-f]{2}/){$fanout}[0-9a-f]{$after_last_slash}$"
 }
 
 touched_one_note_with_fanout() {