{"thread":{"id":"39963","subject":"git svn clone fails","startedAt":"2015-07-29T10:12:01Z","lastAt":"2015-09-03T12:19:46Z","messageCount":9,"participants":["Jörg Schaible","Torsten Bögershausen","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"267041","messageId":"mpa8th$m80$1@ger.gmane.org","threadId":"39963","inReplyTo":null,"subject":"git svn clone fails","fromName":"Jörg Schaible","fromEmail":"joerg.schaible@swisspost.com","sentAt":"2015-07-29T10:12:01Z","receivedAt":"2015-07-29T10:12:01Z","isPatch":false,"sender":{"key":"joerg.schaible@swisspost.com","avatar":null},"body":"Hello guys,\n\nwe have to turn some projects managed by Subversion into a GIT-based \nsolution. However the conversion unfortunately fails with an error:\n\n============== %< ==============\n[...]\nFound branch parent: (refs/remotes/origin/tags/v_2.1.1) \n450fa2c84a8fc087a2a66e5fb3d6d22096671f81\nFollowing parent with do_switch\n        M       changes.xml\n        M       pom.xml\ncouldn't truncate file at /usr/lib64/perl5/vendor_perl/5.20.2/Git.pm line \n1325.\n$ git --version\ngit version 2.5.0\n============== %< ==============\n\nApart from the line number, the same error occurs also with GIT version \n2.4.6 and 2.3.6 (latest stable version in Gentoo).\n\nThe command to create the GIT repository was:\n============== %< ==============\n$ git svn clone http://websvn/svn/essvn/standard/java-commons/lang -s --no-\nmetadata --preserve-empty-dirs -A ~/tmp/authors.txt commons-lang\n============== %< ==============\n\nNote, that the command succeeds even for 2.4.6 if we drop the --preserve-\nempty-dirs option - at the cost of some empty directories which are used to \ntrigger profiles for Maven; i.e. without those we cannot reproduce released \nversions.\n\nCheers,\nJörg\n"},{"id":"267385","messageId":"mppsku$h97$1@ger.gmane.org","threadId":"39963","inReplyTo":"mpa8th$m80$1@ger.gmane.org","subject":"Re: git svn clone fails","fromName":"Jörg Schaible","fromEmail":"joerg.schaible@swisspost.com","sentAt":"2015-08-04T08:20:46Z","receivedAt":"2015-08-04T08:20:46Z","isPatch":false,"sender":{"key":"joerg.schaible@swisspost.com","avatar":null},"body":"Hmmm. Is this the proper channel to report issues or should I go somewhere \nelse?\n\nJörg Schaible wrote:\n\n> Hello guys,\n> \n> we have to turn some projects managed by Subversion into a GIT-based\n> solution. However the conversion unfortunately fails with an error:\n> \n> ============== %< ==============\n> [...]\n> Found branch parent: (refs/remotes/origin/tags/v_2.1.1)\n> 450fa2c84a8fc087a2a66e5fb3d6d22096671f81\n> Following parent with do_switch\n>         M       changes.xml\n>         M       pom.xml\n> couldn't truncate file at /usr/lib64/perl5/vendor_perl/5.20.2/Git.pm line\n> 1325.\n> $ git --version\n> git version 2.5.0\n> ============== %< ==============\n> \n> Apart from the line number, the same error occurs also with GIT version\n> 2.4.6 and 2.3.6 (latest stable version in Gentoo).\n> \n> The command to create the GIT repository was:\n> ============== %< ==============\n> $ git svn clone http://websvn/svn/essvn/standard/java-commons/lang -s\n> --no- metadata --preserve-empty-dirs -A ~/tmp/authors.txt commons-lang\n> ============== %< ==============\n> \n> Note, that the command succeeds even for 2.4.6 if we drop the --preserve-\n> empty-dirs option - at the cost of some empty directories which are used\n> to trigger profiles for Maven; i.e. without those we cannot reproduce\n> released versions.\n> \n> Cheers,\n> Jörg\n"},{"id":"268031","messageId":"mqk6mb$qi8$1@ger.gmane.org","threadId":"39963","inReplyTo":"mppsku$h97$1@ger.gmane.org","subject":"Re: git svn clone fails","fromName":"Jörg Schaible","fromEmail":"joerg.schaible@swisspost.com","sentAt":"2015-08-14T07:51:39Z","receivedAt":"2015-08-14T07:51:39Z","isPatch":false,"sender":{"key":"joerg.schaible@swisspost.com","avatar":null},"body":"Is there really no other place for a bug report? This will simply vanish in \nthe list's noise ...\n\nJörg Schaible wrote:\n\n> Hmmm. Is this the proper channel to report issues or should I go somewhere\n> else?\n> \n> Jörg Schaible wrote:\n> \n>> Hello guys,\n>> \n>> we have to turn some projects managed by Subversion into a GIT-based\n>> solution. However the conversion unfortunately fails with an error:\n>> \n>> ============== %< ==============\n>> [...]\n>> Found branch parent: (refs/remotes/origin/tags/v_2.1.1)\n>> 450fa2c84a8fc087a2a66e5fb3d6d22096671f81\n>> Following parent with do_switch\n>>         M       changes.xml\n>>         M       pom.xml\n>> couldn't truncate file at /usr/lib64/perl5/vendor_perl/5.20.2/Git.pm line\n>> 1325.\n>> $ git --version\n>> git version 2.5.0\n>> ============== %< ==============\n>> \n>> Apart from the line number, the same error occurs also with GIT version\n>> 2.4.6 and 2.3.6 (latest stable version in Gentoo).\n>> \n>> The command to create the GIT repository was:\n>> ============== %< ==============\n>> $ git svn clone http://websvn/svn/essvn/standard/java-commons/lang -s\n>> --no- metadata --preserve-empty-dirs -A ~/tmp/authors.txt commons-lang\n>> ============== %< ==============\n>> \n>> Note, that the command succeeds even for 2.4.6 if we drop the --preserve-\n>> empty-dirs option - at the cost of some empty directories which are used\n>> to trigger profiles for Maven; i.e. without those we cannot reproduce\n>> released versions.\n>> \n>> Cheers,\n>> Jörg\n"},{"id":"268033","messageId":"55CDA784.7080809@web.de","threadId":"39963","inReplyTo":"mqk6mb$qi8$1@ger.gmane.org","subject":"Re: git svn clone fails","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2015-08-14T08:32:04Z","receivedAt":"2015-08-14T08:32:04Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 2015-08-14 09.51, Jörg Schaible wrote:\nI can't reproduce it here:\n\n git svn clone http://websvn/svn/essvn/standard/java-commons/lang\nInitialized empty Git repository in /home/xx/lang/.git/\nRA layer request failed: OPTIONS of\n'http://websvn/svn/essvn/standard/java-commons/lang': Could not resolve hostname\n`websvn': Host not found (http://websvn) at\n/Users/xx/lib/perl5/site_perl/Git/SVN.pm line 143\n\nIn other words, is there a way to make this reproducible for others?\nIf not, how could the problem be tracked down and fixed\n(from other people than you or somebody in your organization ?)\n\n\n\n> Is there really no other place for a bug report? This will simply vanish in \n> the list's noise ...\n> \n> Jörg Schaible wrote:\n> \n>> Hmmm. Is this the proper channel to report issues or should I go somewhere\n>> else?\n>>\n>> Jörg Schaible wrote:\n>>\n>>> Hello guys,\n>>>\n>>> we have to turn some projects managed by Subversion into a GIT-based\n>>> solution. However the conversion unfortunately fails with an error:\n>>>\n>>> ============== %< ==============\n>>> [...]\n>>> Found branch parent: (refs/remotes/origin/tags/v_2.1.1)\n>>> 450fa2c84a8fc087a2a66e5fb3d6d22096671f81\n>>> Following parent with do_switch\n>>>         M       changes.xml\n>>>         M       pom.xml\n>>> couldn't truncate file at /usr/lib64/perl5/vendor_perl/5.20.2/Git.pm line\n>>> 1325.\n>>> $ git --version\n>>> git version 2.5.0\n>>> ============== %< ==============\n>>>\n>>> Apart from the line number, the same error occurs also with GIT version\n>>> 2.4.6 and 2.3.6 (latest stable version in Gentoo).\n>>>\n>>> The command to create the GIT repository was:\n>>> ============== %< ==============\n>>> $ git svn clone http://websvn/svn/essvn/standard/java-commons/lang -s\n>>> --no- metadata --preserve-empty-dirs -A ~/tmp/authors.txt commons-lang\n>>> ============== %< ==============\n>>>\n>>> Note, that the command succeeds even for 2.4.6 if we drop the --preserve-\n>>> empty-dirs option - at the cost of some empty directories which are used\n>>> to trigger profiles for Maven; i.e. without those we cannot reproduce\n>>> released versions.\n>>>\n>>> Cheers,\n>>> Jörg\n> \n"},{"id":"268034","messageId":"mqkgee$ju3$1@ger.gmane.org","threadId":"39963","inReplyTo":"55CDA784.7080809@web.de","subject":"Re: git svn clone fails","fromName":"Jörg Schaible","fromEmail":"joerg.schaible@swisspost.com","sentAt":"2015-08-14T10:38:06Z","receivedAt":"2015-08-14T10:38:06Z","isPatch":false,"sender":{"key":"joerg.schaible@swisspost.com","avatar":null},"body":"Hi Torsten,\n\nthanks for an answer ...\n\nTorsten Bögershausen wrote:\n\n> On 2015-08-14 09.51, Jörg Schaible wrote:\n> I can't reproduce it here:\n> \n>  git svn clone http://websvn/svn/essvn/standard/java-commons/lang\n> Initialized empty Git repository in /home/xx/lang/.git/\n> RA layer request failed: OPTIONS of\n> 'http://websvn/svn/essvn/standard/java-commons/lang': Could not resolve\n> hostname `websvn': Host not found (http://websvn) at\n> /Users/xx/lib/perl5/site_perl/Git/SVN.pm line 143\n\nIt is unfortunately not possible to provide this Subversion repo to the \npublic.\n \n> In other words, is there a way to make this reproducible for others?\n\nActually I hoped, that my report raised some memories, because errors with \nthis symptom had been examined before and some kind of fix has been added \n(according http://stackoverflow.com/questions/25353316/error-with-git-svn-clone) to GIT 2.4.x. However, it seems there's still an issue even in GIT \n2.5.0 when the svn repo contains empty directories that have to be preserved \n...\n\n> If not, how could the problem be tracked down and fixed\n> (from other people than you or somebody in your organization ?)\n\nActually I am not sure. I tried to create a little dummy project in a \nSubversion test repository that contains also empty directories which have \nto be preserved ... but the conversion for it works flawlessly. Even if \nthose dirs had been nested, renamed, moved and deleted.\n\nAny idea how to proceed?\n\nCheers,\nJörg\n"},{"id":"268036","messageId":"55CDD713.1050205@web.de","threadId":"39963","inReplyTo":"mqkgee$ju3$1@ger.gmane.org","subject":"Re: git svn clone fails","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2015-08-14T11:54:59Z","receivedAt":"2015-08-14T11:54:59Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 2015-08-14 12.38, Jörg Schaible wrote:\n> Any idea how to proceed?\n\nGit itself doesn't version empty directories at all, only files\n(and soft links, sub modules....).\n\nGit creates a directory as a \"side effect\" to be able to store files\nthere.\n\nMay be I am off-topic, but would it be possible to fill the empty\ndirectories with a dummy file \".empty\" ?\nAdd those to svn and force Git to create a nearly empty directory.\n"},{"id":"268038","messageId":"mqkrh4$7cf$1@ger.gmane.org","threadId":"39963","inReplyTo":"55CDD713.1050205@web.de","subject":"Re: git svn clone fails","fromName":"Jörg Schaible","fromEmail":"joerg.schaible@swisspost.com","sentAt":"2015-08-14T13:47:15Z","receivedAt":"2015-08-14T13:47:15Z","isPatch":false,"sender":{"key":"joerg.schaible@swisspost.com","avatar":null},"body":"Hi Thorsten,\n\nthere's more fun though. GIT (2.4.6) fails differently if I add additionally \nthe \"--no-minimize-url\":\n\n==================== %< =================\n[...]\nW: -empty_dir: trunk/src/test/serialization/com/elsagsolutions\nr40223 = 7983efa910e6cd606cc63a6b6b365048df1e11a9 \n(refs/remotes/origin/trunk)\n        M       src/main/java/com/scalaris/commons/lang/util/ArrayUtils.java\nr40261 = ecf4747a88073353c9731e6e69c079d66e7aac2d \n(refs/remotes/origin/trunk)\n        M       \nsrc/test/java/com/scalaris/commons/lang/util/ArrayUtilsTestCase.java\nr40262 = 96eda7427de3f1c082e88c23458be197a3b20a7a \n(refs/remotes/origin/trunk)\n        M       changes.xml\n        A       src/main/java/com/scalaris/commons/lang/net/MimeTypes.java\nr41127 = 00d0a652e5ef20c18b9d4764dd70383c1d10177b \n(refs/remotes/origin/trunk)\n        M       changes.xml\nFailed to strip path \n'src/main/java/com/elsagsolutions/commons/lang/io/.gitignore' ((?^:^trunk(/|\n$)))\n==================== %< =================\n\nthe error in the Perl module happens only without that option. Both errors \ndo not occur without option \"--preserve-empty-dirs\".\n\n\nTorsten Bögershausen wrote:\n\n> On 2015-08-14 12.38, Jörg Schaible wrote:\n>> Any idea how to proceed?\n> \n> Git itself doesn't version empty directories at all, only files\n> (and soft links, sub modules....).\n\nI know, but \"git svn clone\" creates a .gitignore file in such a case.\n\n> Git creates a directory as a \"side effect\" to be able to store files\n> there.\n> \n> May be I am off-topic, but would it be possible to fill the empty\n> directories with a dummy file \".empty\" ?\n\nThat does not help when converting the Subversion history. It's failing long \nbefore HEAD of trunk.\n\n> Add those to svn and force Git to create a nearly empty directory.\n\nThat's what GIT normally does by default on its own. However, I cannot \nchange the Subversion history. GIT has to deal with it while converting (and \nnormally it does, as my test proofed with the demo Subversion project).\n\nCheers,\nJörg\n"},{"id":"269186","messageId":"20150902022757.GA7143@dcvr.yhbt.net","threadId":"39963","inReplyTo":"mqk6mb$qi8$1@ger.gmane.org","subject":"Re: git svn clone fails","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2015-09-02T02:27:57Z","receivedAt":"2015-09-02T02:27:57Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Jörg Schaible <joerg.schaible@swisspost.com> wrote:\n> Is there really no other place for a bug report? This will simply vanish in \n> the list's noise ...\n\nThese messages do get seen and read.  (And I would not have seen this\nmessage if it were posted anywhere else).\n\nBut I don't have much time or motivation to work on git svn since it's\nmostly made itself obsolete for me.\n\n--preserve-empty-dirs probably hasn't seen much real-world use and\n(IIRC) not something that could always be 100% reliable.\n\nRegardless of options, git svn does log empty directories, so there's\nalso an obscure, probably equally-unused \"git svn mkdirs\" command which\nprocesses the unhandled.log files inside $GIT_DIR to recreate empty\ndirectories.  You could give that a try.\n"},{"id":"269310","messageId":"ms9dt3$851$1@ger.gmane.org","threadId":"39963","inReplyTo":"20150902022757.GA7143@dcvr.yhbt.net","subject":"Re: git svn clone fails","fromName":"Jörg Schaible","fromEmail":"joerg.schaible@swisspost.com","sentAt":"2015-09-03T12:19:46Z","receivedAt":"2015-09-03T12:19:46Z","isPatch":false,"sender":{"key":"joerg.schaible@swisspost.com","avatar":null},"body":"Hi Eric,\n\nEric Wong wrote:\n\n> Jörg Schaible <joerg.schaible@swisspost.com> wrote:\n>> Is there really no other place for a bug report? This will simply vanish\n>> in the list's noise ...\n> \n> These messages do get seen and read.  (And I would not have seen this\n> message if it were posted anywhere else).\n\nAs first time poster for this list without any response in days I was simply \nnot sure, if it was the correct place to report problems.\n\n> But I don't have much time or motivation to work on git svn since it's\n> mostly made itself obsolete for me.\n\nThat's our goal also, to make svn obsolete ;-)\nAll we need is a one time conversion.\n \n> --preserve-empty-dirs probably hasn't seen much real-world use and\n> (IIRC) not something that could always be 100% reliable.\n> \n> Regardless of options, git svn does log empty directories, so there's\n> also an obscure, probably equally-unused \"git svn mkdirs\" command which\n> processes the unhandled.log files inside $GIT_DIR to recreate empty\n> directories.  You could give that a try.\n\nI am not sure, what you actually try to tell me here. How can I interfere in \nthe complete \"svn clone\" process?\n\nNote, that the problem seems really to be caused by some obscure condition. \nWe can actually clone some svn trees that contain empty directories and they \nare properly handled with a .gitignore file. However, some fail for unknown \nreason.\n\nI tried to recreate the situation with a separte non-critical svn \nplayground, but was never able reproduce the problem. svn clone succeeded \nevery time. Not very useful for an error report, I know. :-/\n\nCheers,\nJörg\n"}]}