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

git-svn fetch fails when a file is renamed changing only case

From
PPazu <pazu@pazu.com.br>
Date
Oct 9, 2006, 17:13 UTC
Message-ID
<ege016$vrb$1@sea.gmane.org>

For example, if you had a file named TestFile and it's renamed to TESTFILE, git-svn fails to fetch revisions after the rename.

My perl skills are close to non-existant, so I'm afraid I don't know how to fix this. Attached to this message, however, is a sample svn repository that can reproduce this bug. Just unpack it somewhere (let's say, in /tmp) and try the following:

tar -C /tmp -xzf git-svn-rename-test.tar.gz mkdir test-wc cd test-wc git-svn init file:///tmp/git-svn-rename-test git-svn fetch

The last command will fail after fetching revision #3, where a file named TestFile was renamed to TESTFILE. Here's the stack trace:

svn: 'TestFile' is not under version control
256 at /Users/pazu/bin/git-svn line 2015
         main::safe_qx('svn', 'propget', 'svn:keywords', 
'TestFile@BASE') called at /Users/pazu/bin/git-svn line 2154
         main::svn_propget_base('svn:keywords', 'TestFile') called at 
/Users/pazu/bin/git-svn line 1773
         main::do_update_index('ARRAY(0x180bd68)', 'remove', 'undef') 
called at /Users/pazu/bin/git-svn line 1805
         main::index_changes() called at /Users/pazu/bin/git-svn line 1875
         main::git_commit('HASH(0x180bd98)', 
'c77db38dc752305ba19ebe19b22306551d0f8d52') called at 
/Users/pazu/bin/git-svn line 346
         main::fetch_cmd() called at /Users/pazu/bin/git-svn line 290
         main::fetch() called at /Users/pazu/bin/git-svn line 149
I'm on Mac OS X (Intel) 10.4.8

mini:~ pazu$ uname -a Darwin mini.intranet.ecore.com.br 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386

Git was compiled from the released 1.4.2.3 sources, without any modifications:

mini:~ pazu$ git-svn --version git-svn version 1.4.2.3

If you need more information, you can contact me directly, or just use the list -- I'll be here listening :)

-- Marcus Brito
Next: Seth Falcon
Message 1 of 5 in “git-svn fetch fails when a file is renamed changing only case”
  1. PazuOct 9, 2006
  2. Seth FalconOct 9, 2006
  3. PazuOct 10, 2006
  4. PazuOct 10, 2006
  5. Eric WongOct 11, 2006

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.