git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git svn clone fails

From
JSJörg Schaible <joerg.schaible@swisspost.com>
Date
Aug 14, 2015, 13:47 UTC
Message-ID
<mqkrh4$7cf$1@ger.gmane.org>
In-Reply-To
<55CDD713.1050205@web.de>
Hi Thorsten,

there's more fun though. GIT (2.4.6) fails differently if I add additionally the "--no-minimize-url":

==================== %< =================
[...]
W: -empty_dir: trunk/src/test/serialization/com/elsagsolutions
r40223 = 7983efa910e6cd606cc63a6b6b365048df1e11a9 
(refs/remotes/origin/trunk)
        M       src/main/java/com/scalaris/commons/lang/util/ArrayUtils.java
r40261 = ecf4747a88073353c9731e6e69c079d66e7aac2d 
(refs/remotes/origin/trunk)
        M       
src/test/java/com/scalaris/commons/lang/util/ArrayUtilsTestCase.java
r40262 = 96eda7427de3f1c082e88c23458be197a3b20a7a 
(refs/remotes/origin/trunk)
        M       changes.xml
        A       src/main/java/com/scalaris/commons/lang/net/MimeTypes.java
r41127 = 00d0a652e5ef20c18b9d4764dd70383c1d10177b 
(refs/remotes/origin/trunk)
        M       changes.xml
Failed to strip path 
'src/main/java/com/elsagsolutions/commons/lang/io/.gitignore' ((?^:^trunk(/|
$)))
==================== %< =================

the error in the Perl module happens only without that option. Both errors do not occur without option "--preserve-empty-dirs".

Torsten Bögershausen wrote:
Show 5 quoted lines
> On 2015-08-14 12.38, Jörg Schaible wrote:
>> Any idea how to proceed?
> 
> Git itself doesn't version empty directories at all, only files
> (and soft links, sub modules....).
I know, but "git svn clone" creates a .gitignore file in such a case.
Show 5 quoted lines
> Git creates a directory as a "side effect" to be able to store files
> there.
> 
> May be I am off-topic, but would it be possible to fill the empty
> directories with a dummy file ".empty" ?

That does not help when converting the Subversion history. It's failing long before HEAD of trunk.

> Add those to svn and force Git to create a nearly empty directory.

That's what GIT normally does by default on its own. However, I cannot change the Subversion history. GIT has to deal with it while converting (and normally it does, as my test proofed with the demo Subversion project).

Cheers, Jörg

Previous: Torsten BögershausenNext: Eric Wong
Message 7 of 9 in “git svn clone fails”
  1. Jörg SchaibleJul 29, 2015
  2. Jörg SchaibleAug 4, 2015
  3. Jörg SchaibleAug 14, 2015
  4. Torsten BögershausenAug 14, 2015
  5. Jörg SchaibleAug 14, 2015
  6. Torsten BögershausenAug 14, 2015
  7. Jörg SchaibleAug 14, 2015
  8. Eric WongSep 2, 2015
  9. Jörg SchaibleSep 3, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.