Keep revision number updated with the number of git commits
Fix update of file with same revision