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

Re: Cloning into an existing, non-empty directory?

From
Richard Hartmann <richih.mailinglist@gmail.com>
Date
Apr 23, 2011, 22:11 UTC
Message-ID
<BANLkTinV4cFC5vzr25V-D3PMwWx284zgoQ@mail.gmail.com>
In-Reply-To
<20110423101500.GB1500@elie>
2011/4/23 Jonathan Nieder <jrnieder@gmail.com>:
> Richard Hartmann wrote[1]:
Nice. Is that automagic? And if yes, may I steal it?
> I assume you mean --work-tree and --git-dir.  But if true, that would
> be a bug.
With env variables set:

% git merge origin fatal: origin - not something we can merge %

With parameters:

% git '--work-tree=/home/richih/killme/fgit/target-default' '--git-dir=/home/richih/killme/fgit/source' merge origin fatal: origin - not something we can merge %

In a normal worktree without any mangling: % git merge origin [...success...] %

I think I reduced the test-case as much as I can, especially since the script takes care of everything for you. If you simply run in on any random git repo, you will be able to replicate this behaviour. Unfortunately ;)

Thanks, Richard

Previous: Jonathan NiederNext: Jonathan Nieder
Message 7 of 12 in “Cloning into an existing, non-empty directory?”
  1. Richard HartmannApr 21, 2011
  2. Jonathan NiederApr 21, 2011
  3. Richard HartmannApr 22, 2011
  4. Jonathan NiederApr 23, 2011
  5. Nguyen Thai Ngoc DuyApr 23, 2011
  6. Jonathan NiederApr 23, 2011
  7. Richard HartmannApr 23, 2011
  8. Jonathan NiederApr 25, 2011
  9. Andreas SchwabApr 25, 2011
  10. Jonathan NiederApr 25, 2011
  11. Jeff KingApr 25, 2011
  12. Richard HartmannApr 25, 2011

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.