(minor) error message clarity...

'should not happen' was appropriate before I added --dirty, but now it's
more likely to be due to an old git version
This commit is contained in:
Sitaram Chamarty 2011-09-28 04:10:56 +05:30
parent 35f402a140
commit a6668b90c3

View file

@ -70,7 +70,7 @@ perl -lpi -e "s(^GL_PACKAGE_CONF=.*)(GL_PACKAGE_CONF=$gl_conf_dir)" $buildroot$g
# record which version is being sent across; we assume it's HEAD
if git rev-parse --is-inside-work-tree >/dev/null 2>&1
then
git describe --tags --long --dirty=-dt 2>/dev/null > conf/VERSION || die "git describe failed -- this should not happen!"
git describe --tags --long --dirty=-dt 2>/dev/null > conf/VERSION || die "git describe failed -- your git is probably too old"
else
[ -f conf/VERSION ] || echo '(unknown)' > conf/VERSION
fi