git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [BUG] merge into unborn branch resets index+WT even if populated
@ 2010-08-17  7:45 Thomas Rast
  2010-08-22 21:06 ` [PATCH] Exhibit merge bug that clobbers index&WT Thomas Rast
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Rast @ 2010-08-17  7:45 UTC (permalink / raw)
  To: git; +Cc: Johannes Schindelin

Hi,

I'm posting this on behalf of Dscho who reported it on IRC, but
apparently doesn't have the time for email.

If you run the following sequence of commands:

  git init
  echo foo > somefile
  git add somefile
  git pull elsewhere master

(where 'elsewhere' is any repo having a master branch) the "merge into
unborn branch" logic silently nukes the index AND worktree copy of
"somefile", thereby losing it.  The same works with fetch+merge, so
it's not pull's fault.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-22 21:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-17  7:45 [BUG] merge into unborn branch resets index+WT even if populated Thomas Rast
2010-08-22 21:06 ` [PATCH] Exhibit merge bug that clobbers index&WT Thomas Rast

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).