Skip to content

fix git command in pkgver()

乾康 周 requested to merge wszqkzqk/gcc:fix-pkgver into main
  • Fix format of args: use --abbrev=12 instead of --abbrev 12

The command echo $(git describe --abbrev 12 --tags | sed 's/[^-]*-[^-]*-//;s/[^-]*-/r&/;s/-/+/g;s/_/./') is invalid and will fail with:

fatal: Not a valid object name 12

We might use the correct argument format --abbrev=12.

Merge request reports

Loading