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

cogito testsuite failure - git-read-tree too careful

From
PRPavel Roskin <proski@gnu.org>
Date
May 23, 2006, 00:28 UTC
Message-ID
<1148344098.26251.57.camel@dv>
Hello, Petr!

The testsuite for cogito fails in t9300-seek.sh for up-to-date master branches of git and Cogito.

$ ./t9300-seek.sh -v -i
* expecting success: cg-seek cbd273f56aecaaf28b857ae74da77cbb11a4d659
Warning: uncommitted local changes, trying to bring them along
fatal: Entry 'newdir/newfile' not uptodate. Cannot merge.
cg-seek: cbd273f56aecaaf28b857ae74da77cbb11a4d659: bad commit
* FAIL 21: seeking to the first commit
        cg-seek cbd273f56aecaaf28b857ae74da77cbb11a4d659

As I understand it, "git-read-tree -m" in cg-Xlib refuses to merge if there are local changes. This was likely caused by commit fcc387db9bc453dc7e07a262873481af2ee9e5c8:

read-tree -m -u: do not overwrite or remove untracked working tree
files.
    
I guess git-read-tree should be using "--reset" or something to restore
the original behavior.
The "tutorial" testsuite also fails:
Should not be doing an Octopus.
No merge strategy handled the merge.
Merging 5de8995e58b4b478dff476788c3607ed5021fc24 ->
ba8b9edd80500d60d68a6630ee415a3e710f6db2
        to a60f36f73018dc1959d8d2cbd28271f93ee5f686 ...
fatal: Untracked working tree file 'stack.h' would be overwritten by
merge.
cg-merge: git-read-tree failed (merge likely blocked by local changes)
162
?
Unexpected error 4 on line 242

In this case, we may want cg-merge to fail, because it's wrong to overwrite local files without backing them up.

-- 
Regards,
Pavel Roskin
Message 1 of 1 in “cogito testsuite failure - git-read-tree too careful”
  1. Pavel RoskinMay 23, 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.