Hi, git-version-gen from the 3.1 release tarball doesn't initialize 'prefix'. If prefix happens to be set to /usr in the caller's environment, the script will fail. According to the help screen, prefix should default to 'v'. Please add prefix="v" to the beginning of git-version-gen to fix this problem.
I wanted to send a patch, but git-version-gen doesn't exist in parted's Git repository. Regards, Andreas
