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

Re: Git svn rebase/dcommit break (index) if not run from directory containing ./.git

From
EWEric Wong <normalperson@yhbt.net>
Date
May 27, 2010, 21:04 UTC
Message-ID
<20100527210419.GB2291@dcvr.yhbt.net>
In-Reply-To
<op.vdcugytd1e62zd@merlin.emma.line.org>
Matthias Andree <matthias.andree@gmx.de> wrote:
Show 24 quoted lines
> Am 26.05.2010, 20:51 Uhr, schrieb Eric Wong:
>> Matthias Andree <matthias.andree@gmx.de> wrote:
>>> [resending this with new Subject since there wasn't a reply in 33 days,
>>> cc:ing Eric]
>>>
>>> === Reproduce ===
>>>
>>> 1. Use a git-svn checkout that has at least one subdirectory
>>>
>>> 2. cd to that subdirectory
>>>
>>> 3. run git svn rebase. It concludes successfully, then:
>>>
>>> 4. git diff-index HEAD -> output like the one shown above.
>>>
>>> This is on Cygwin 1.7.5 w/ Windows 7 32-bit professional German.
>>
>> Hi Matthias,
>>
>> I can't reproduce this on a GNU/Linux system, so I'm guessing this
>> is a weird Cygwin/Windows issue, and I don't know Windows.
>
> Do you deem it possible to have the workaround applied in code, i. e.  
> change to the top-level directory up front?

"git rebase" (invoked by "git svn") already does that. This could be a bug in "git rebase" itself...

> If not, any hints as to debugging facilities and procedures beyond  
> GIT_TRACE?

Well I usually use "strace -f", but that's Linux-only. Maybe there's something similar for Cygwin.

-- 
Eric Wong
Previous: Matthias Andree
Message 5 of 5 in “Git-SVN on Cygwin 1.7: git svn rebase b0rks index if not run from top-level directory”
  1. Matthias AndreeApr 21, 2010
  2. Alexander IljinApr 21, 2010
  3. Eric WongMay 26, 2010
  4. Matthias AndreeMay 27, 2010
  5. Eric WongMay 27, 2010

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.