[153835] trunk/dports/devel/svn2git

ryandesign at macports.org ryandesign at macports.org
Thu Oct 13 06:45:42 CEST 2016


Revision: 153835
          https://trac.macports.org/changeset/153835
Author:   ryandesign at macports.org
Date:     2016-10-12 21:45:42 -0700 (Wed, 12 Oct 2016)
Log Message:
-----------
svn2git: Handle case-only renames correctly

Modified Paths:
--------------
    trunk/dports/devel/svn2git/Portfile

Added Paths:
-----------
    trunk/dports/devel/svn2git/files/fix-case-export-on-osx.patch

Modified: trunk/dports/devel/svn2git/Portfile
===================================================================
--- trunk/dports/devel/svn2git/Portfile	2016-10-13 04:09:07 UTC (rev 153834)
+++ trunk/dports/devel/svn2git/Portfile	2016-10-13 04:45:42 UTC (rev 153835)
@@ -7,6 +7,7 @@
 
 github.setup        svn-all-fast-export svn2git 437beb493db3b1cb532ca5807264cd4403a44157
 version             20160822
+revision            1
 categories          devel
 platforms           darwin
 maintainers         ryandesign openmaintainer
@@ -27,6 +28,8 @@
     copy ${filespath}/Makefile-Install.in ${worksrcpath}/Makefile-Install
 }
 
+patchfiles          fix-case-export-on-osx.patch
+
 post-patch {
     xinstall -m 644 ${filespath}/local-config.pri.in ${worksrcpath}/src/local-config.pri
     reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile-Install ${worksrcpath}/src/local-config.pri

Added: trunk/dports/devel/svn2git/files/fix-case-export-on-osx.patch
===================================================================
--- trunk/dports/devel/svn2git/files/fix-case-export-on-osx.patch	                        (rev 0)
+++ trunk/dports/devel/svn2git/files/fix-case-export-on-osx.patch	2016-10-13 04:45:42 UTC (rev 153835)
@@ -0,0 +1,15 @@
+https://github.com/svn-all-fast-export/svn2git/pull/21
+https://github.com/neverpanic/svn2git/commit/0725bfae7b1cd323130356a49f1f57608fb88e73
+--- src/repository.cpp
++++ src/repository.cpp
+@@ -288,6 +288,10 @@ FastImportRepository::FastImportRepository(const Rules::Repository &rule)
+             init.setWorkingDirectory(name);
+             init.start("git", QStringList() << "--bare" << "init");
+             init.waitForFinished(-1);
++            QProcess casesensitive;
++            casesensitive.setWorkingDirectory(name);
++            casesensitive.start("git", QStringList() << "config" << "core.ignorecase" << "false");
++            casesensitive.waitForFinished(-1);
+             // Write description
+             if (!rule.description.isEmpty()) {
+                 QFile fDesc(QDir(name).filePath("description"));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161012/5b3072ae/attachment-0002.html>


More information about the macports-changes mailing list