From 2e610158a84eced883874f85ec2744a7abeef094 Mon Sep 17 00:00:00 2001 From: spacewander Date: Thu, 24 Sep 2020 23:10:23 +0800 Subject: [PATCH] git-info: fix regex for bsd sed --- bin/git-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-info b/bin/git-info index 86bb4f9..d2ff844 100755 --- a/bin/git-info +++ b/bin/git-info @@ -34,7 +34,7 @@ most_recent_commit() { submodules() { # short sha1 - git submodule status | sed 's/\([^abcdef0-9]\{,2\}\)\([abcdef0-9]\{7\}\)\([abcdef0-9]\{33\}\)\(.*\)/\1\2\4/' + git submodule status | sed 's/\([^abcdef0-9]\{0,2\}\)\([abcdef0-9]\{7\}\)\([abcdef0-9]\{33\}\)\(.*\)/\1\2\4/' } local_branches() {