This is necessary for these tests to pass if the user has `diff.mnemonicPrefix` set to true (because libgit2 supports that flag and outputs a different patch if it is set).