From: Loyall, David Date: Wed, 18 Sep 2013 19:00:46 GMT Subject: suspected bug(s) in git-cvsexportcommit.perl Message-ID: Hello. I don't believe that git-cvsexportcommit.perl is working properly. First off, invocations of "git-apply" fail on my system.  "git apply" works.  (The aforementioned script uses the former.) Second, please have a look at this output (specific strings have been replaced with 'foo') hobbes@metalbaby:~/src/foo$ git cvsexportcommit -v fecc8b4bb3d91d204f4eb3ebd112f6cec6004819 Applying to CVS commit fecc8b4bb3d91d204f4eb3ebd112f6cec6004819 from parent 695a544fbdcf7e0614c35d1dab9a3eac0cc57b4c Checking if patch will apply cvs status: nothing known about `WebContent/WEB-INF/lib/commons-lang-2.6.jar' cvs status: nothing known about `WebContent/WEB-INF/lib/commons-configuration-1.9.jar' cvs status: nothing known about `JavaSource/foo/ConfigManager.java' cvs status: nothing known about `JavaSource/config.xml' Huh? Status 'Unknown' reported for unexpected file 'no file commons-lang-2.6.jar' Huh? Status 'Unknown' reported for unexpected file 'no file commons-configuration-1.9.jar' Huh? Status 'Unknown' reported for unexpected file 'no file ConfigManager.java' Huh? Status 'Unknown' reported for unexpected file 'no file config.xml' Applying :7: trailing whitespace. :8: trailing whitespace. :9: trailing whitespace.                 :10: trailing whitespace.                                 :11: trailing whitespace.                                                 error: patch failed: JavaSource/foo/QueueMapping.java:67 error: JavaSource/foo/QueueMapping.java: patch does not apply Context reduced to (2/2) to apply fragment at 43 cannot patch at /usr/lib/git-core/git-cvsexportcommit line 333. hobbes@metalbaby:~/src/foo$ Even after I altered my copy of the script to invoke 'git apply' in two places, I still get the erroneous "unknown" lines.  My suspicion is that it has something to do with the $basename stuff, but, who am I kidding? I don't grok perl. I haven't yet explored the error lines after "Applying". So, what do I want?  I want somebody to test git-cvsexportcommit.perl.  If it passes tests, then I'd like help creating a test that it does fail. (Perhaps my workspace can help. Perhaps it is as simple as the presence of a new file in a subdirectory.) Cheers, thanks, --Dave