|
@@ -33,12 +33,12 @@ git_fact() {
|
33
|
33
|
git_present || warn "can't give fact outside git repo: $fact_name"
|
34
|
34
|
case "$fact_name" in
|
35
|
35
|
latest_tag)
|
36
|
|
- git log --format="%D" \
|
|
36
|
+ git log --format="%d" \
|
37
|
37
|
| sed 's/,/\n/g' \
|
38
|
|
- | sed 's/^[[:blank:]]*//; ' \
|
39
|
|
- | grep -E '^tag: v[[:digit:]]+\.' \
|
40
|
|
- | cut -d' ' -f2 \
|
41
|
|
- | head -1
|
|
38
|
+ | sed 's/^[[:blank:]]*//' \
|
|
39
|
+ | grep -E '^\(?tag' \
|
|
40
|
+ | tr -cd '[[:digit:]].v\n' \
|
|
41
|
+ | grep . -m 1
|
42
|
42
|
;;
|
43
|
43
|
latest_version)
|
44
|
44
|
git_fact latest_tag | git_tag2ver
|