[kde-dev-scripts] /: relicensecheck.pl stopped too early looking at git log, in case the file had moved!

David Faure <[email protected]> Fri, 24 Jul 2015 20:40:58 +0000
Newsgroups gmane.comp.kde.cvs,gmane.comp.kde.licensing
Message-ID <[email protected]>
Git commit d417df0bb37ab2af7fd3b0c701e97c3a6f954c89 by David Faure.
Committed on 24/07/2015 at 20:39.
Pushed by dfaure into branch 'master'.

relicensecheck.pl stopped too early looking at git log, in case the file ha=
d moved!

Added the --follow option to `git log` to fix that.

CCMAIL: [email protected], [email protected]

M  +1    -1    relicensecheck.pl

http://commits.kde.org/kde-dev-scripts/d417df0bb37ab2af7fd3b0c701e97c3a6f95=
4c89

diff --git a/relicensecheck.pl b/relicensecheck.pl
index 7dde080..3dc6ebd 100755
--- a/relicensecheck.pl
+++ b/relicensecheck.pl
@@ -402,7 +402,7 @@ if ($svn) {
     open(IN, "-|") || exec 'svn', 'log', '-q', $file;
 } else {
     # Format the git output to match the format of svn log.
-    open(IN, "-|") || exec 'git', 'log', '--abbrev-commit', '--pretty=3Dfo=
rmat:r%h | %ae ', $file;
+    open(IN, "-|") || exec 'git', 'log', '--follow', '--abbrev-commit', '-=
-pretty=3Dformat:r%h | %ae ', $file;
 }
 while(<IN>) {
=20