Skip to content

Commit 32fe6e6

Browse files
committed
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 diff --src-dir=a/ --dst-dir=b/` so everything is the same as upstream for everyone.
1 parent 65ea3a9 commit 32fe6e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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 diff --src-prefix=a/ --dst-prefix=b/
137137
};
138138
die "Couldn't create a Devel::PatchPerl patch for $release->{version}" if $? != 0;
139139
}

0 commit comments

Comments
 (0)