git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git pull silently removing files in the index
@ 2013-06-17 10:14 Stefan Schüßler
  0 siblings, 0 replies; only message in thread
From: Stefan Schüßler @ 2013-06-17 10:14 UTC (permalink / raw
  To: git

I think there's a bug in git pull. Doing a git pull in a fresh repository without any commits removes files in the index.

Example:

  $ mkdir foo 
  $ cd foo
  $ git init
  $ touch file1 file2
  $ git add file1
  $ ls
  file1 file2
  $ git pull https://github.com/sos4nt/empty.git master
  $ ls
  file2

"file2" is still there, but "file1" was silently removed and no error message was shown.

I'm running git 1.8.3.1

Cheers, Stefan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-17 10:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-17 10:14 Git pull silently removing files in the index Stefan Schüßler

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).