Take into get_rev_info command may fail when not in a git repository