git log: avoid segfault with --all-match