abuild fails due to 'git log' returns colorized hash
Hi! I have
[color]
ui = always
in my .gitconfig, so git_last_commit call in abuild returns colorized commit hash, which causes git_last_commit_epoch call to fail with:
fatal: bad revision '?[33m631c7968043f58ee3afb1be3d2fc40886cda7793?[m'
Note term color codes ?[33m ?[m above.
Maybe instead of git log --format=oneline|awk '{print $1}'
git_last_commit could use git log --format=%H
, which returns non-colorized hash?