Merge pull request #880 from spacewander/fix_bsd_sed_regex

git-info: fix regex for bsd sed
This commit is contained in:
罗泽轩 2020-09-25 15:22:26 +08:00 committed by GitHub
commit 74fe4f6aba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {