If git config prefer fast-forward on merges, check if that option is possible
https://stackoverflow.com/questions/50188926/how-to-judge-fast-forward-and-no-fast-forward-in-libgit2