Skip to content

Commit 1d9b750

Browse files
waterkipzakame
authored andcommitted
Fix bug where git diff always differs with upstream
When running generate I get a lot of differences in DevelPatchPerl.patch because git's `diff.mnemonicprefix` is set to `true`. To mitigate this, use `git -c 'diff.mnemonicprefix=false' diff` so everything is the same as upstream.
1 parent 0b759cd commit 1d9b750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ sub die_with_sample {
133133
die "Couldn't create a temp git repo for $release->{version}" if $? != 0;
134134
Devel::PatchPerl->patch_source($release->{version}, $dir);
135135
$patch = qx{
136-
cd $dir && git diff
136+
cd $dir && git -c 'diff.mnemonicprefix=false' diff
137137
};
138138
die "Couldn't create a Devel::PatchPerl patch for $release->{version}" if $? != 0;
139139
}

0 commit comments

Comments
 (0)