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

RE: [PATCH 1/2] Demonstrate bugs when a directory is replaced with a symlink.

From
PEPickens, James E <james.e.pickens@intel.com>
Date
Jul 29, 2009, 16:57 UTC
Message-ID
<3BA20DF9B35F384F8B7395B001EC3FB342402A13@azsmsx507.amr.corp.intel.com>
In-Reply-To
<7v4osvyjl2.fsf@alter.siamese.dyndns.org>
On Wed, Jul 29, 2009, Junio C Hamano<gitster@pobox.com> wrote:
Show 7 quoted lines
> Michael J Gruber <git@drmicha.warpmail.net> writes:
>> Isn't the failure of the second test caused by that of the first one?
>> a/b-2/c/d is gone from the worktree, and master does not touch it, so
>> the merge leaves the worktree version (non-existent) as is.
>
> To avoid that impression the second test should probably have been written
> to start from a clean slate, using "reset --hard" or something.

I'll send a new patch shortly that combines the two tests into one and includes the "reset --hard".

Show 7 quoted lines
> Kjetil's patch actually fixes the first one, but the second one will still
> show breakage.
>
> I wonder if the breakage is in recursive merge or in the generic read-tree
> three-way merge code.  I highly suspect that using "git merge -s resolve"
> would make the test pass.  Historically recursive merge is known to be
> careless in many corner cases.
You're right, using the resolve strategy does make the test pass.
James
Previous: Junio C HamanoNext: Pickens, James E
Message 8 of 18 in “More symlink/directory troubles”
  1. James PickensJul 28, 2009
  2. 1/2 Demonstrate bugs when a directory is replaced with a symlink.James Pickens, Jul 28, 2009
  3. 2/2 Demonstrate merge failure when a directory is replaced with a symlink.James Pickens, Jul 28, 2009
  4. Michael J GruberJul 29, 2009
  5. Pickens, James EJul 29, 2009
  6. Michael J GruberJul 29, 2009
  7. Junio C HamanoJul 29, 2009
  8. Pickens, James EJul 29, 2009
  9. Demonstrate bugs when a directory is replaced with a symlinkPickens, James E, Jul 29, 2009
  10. Junio C HamanoJul 29, 2009
  11. Demonstrate bugs when a directory is replaced with a symlinkPickens, James E, Jul 29, 2009
  12. Linus TorvaldsJul 29, 2009
  13. Junio C HamanoJul 29, 2009
  14. Kjetil BarvikJul 29, 2009
  15. Linus TorvaldsJul 29, 2009
  16. Linus TorvaldsJul 30, 2009
  17. Junio C HamanoJul 30, 2009
  18. Junio C HamanoJul 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.