git submodule vs git mergetool

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

git submodule vs git mergetool

From: Mathieu Malaterre <hidden>
Date: 2016-06-15 22:50:25

Hi there,

  not sure if this is the right place to report a problem. anyway I
have two branches (release and master) each one has a Testing/Data
submodule:

git submodule add git://gdcm.git.sourceforge.net/gitroot/gdcm/gdcmData
Testing/Data

  During a merge those two submodules produced a conflict:


$ git mergetool
merge tool candidates: meld opendiff kdiff3 tkdiff xxdiff
tortoisemerge gvimdiff diffuse ecmerge p4merge araxis emerge vimdiff
Merging the files: Testing/Data

mv: cannot stat `Testing/Data': No such file or directory
cp: cannot stat `./Testing/Data.BACKUP.5251': No such file or directory
error: git checkout-index: cannot create temporary subproject
error: git checkout-index: cannot create temporary subproject
Normal merge conflict for 'Testing/Data':
  {local}: created
  {remote}: created
Hit return to start merge resolution tool (gvimdiff):
3 files to edit
Testing/Data seems unchanged.
Was the merge successful? [y/n] y
fatal: unable to stat 'Testing/Data': No such file or directory

I guess this is a minor issue, but I thought I should report it here.

Thanks for this tool !
-- 
Mathieu

Re: git submodule vs git mergetool

From: Jens Lehmann <hidden>
Date: 2016-06-15 22:50:26

Am 18.01.2011 10:04, schrieb Mathieu Malaterre:
$ git mergetool
merge tool candidates: meld opendiff kdiff3 tkdiff xxdiff
tortoisemerge gvimdiff diffuse ecmerge p4merge araxis emerge vimdiff
Merging the files: Testing/Data

mv: cannot stat `Testing/Data': No such file or directory
cp: cannot stat `./Testing/Data.BACKUP.5251': No such file or directory
error: git checkout-index: cannot create temporary subproject
error: git checkout-index: cannot create temporary subproject
Normal merge conflict for 'Testing/Data':
  {local}: created
  {remote}: created
Hit return to start merge resolution tool (gvimdiff):
3 files to edit
Testing/Data seems unchanged.
Was the merge successful? [y/n] y
fatal: unable to stat 'Testing/Data': No such file or directory

I guess this is a minor issue, but I thought I should report it here.
I assume this happens when you do the merge in a work tree where this
submodule does not exist? Right now git does not populate submodules
that show up while switching branches or doing a merge. I am working
on that feature, but progress is not as swift as I hoped ...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help