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

git mergetool from next not working in subdirectory

From
JFJonas Flodén <jonas.floden@gmail.com>
Date
Jan 30, 2009, 13:05 UTC
Message-ID
<glutv9$4b1$1@ger.gmane.org>
Hi,

I just upgraded to the current 'next' version of git (v1.6.1.2-418-gd79e69c). When I run git mergetool from a subdirectory in my workspace I get the following output: (with obfuscated output..)

~/src/rep/subdir $ git mergetool Merging the files: a/b/file.c

git checkout-index: subdir/subdir/a/b/file.c is not in the cache
git checkout-index: subdir/subdir/a/b/file.c is not in the cache
git checkout-index: subdir/subdir/a/b/file.c is not in the cache
Normal merge conflict for 'a/b/file.c':
  {local}: modified
  {remote}: modified
Hit return to start merge resolution tool (kdiff3):

When I hit enter the merge resolution finishes right away and the file ends up empty.

Note how subdir is duplicated in the output above.
This works perfectly fine with the 'master' version (1.6.1.2-253-ga34a).

Regards, Jonas

Next: Johannes Gilger
Message 1 of 8 in “git mergetool from next not working in subdirectory”
  1. Jonas FlodénJan 30, 2009
  2. Johannes GilgerJan 30, 2009
  3. Charles BaileyJan 30, 2009
  4. Quick and dirty mergetool fixCharles Bailey, Jan 30, 2009
  5. Jonas FlodénJan 30, 2009
  6. Quick and dirty mergetool fix - take 2Charles Bailey, Jan 30, 2009
  7. Charles BaileyJan 30, 2009
  8. Jonas FlodénJan 30, 2009

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.