{"thread":{"id":"34174","subject":"Git pull silently removing files in the index","startedAt":"2013-06-17T10:14:00Z","lastAt":"2013-06-17T10:14:00Z","messageCount":1,"participants":["Stefan Schüßler"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"221049","messageId":"D08911E9-6589-4A1F-9B1C-9D3F66438753@stefanschuessler.de","threadId":"34174","inReplyTo":null,"subject":"Git pull silently removing files in the index","fromName":"Stefan Schüßler","fromEmail":"mail@stefanschuessler.de","sentAt":"2013-06-17T10:14:00Z","receivedAt":"2013-06-17T10:14:00Z","isPatch":false,"sender":{"key":"mail@stefanschuessler.de","avatar":null},"body":"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.\n\nExample:\n\n  $ mkdir foo \n  $ cd foo\n  $ git init\n  $ touch file1 file2\n  $ git add file1\n  $ ls\n  file1 file2\n  $ git pull https://github.com/sos4nt/empty.git master\n  $ ls\n  file2\n\n\"file2\" is still there, but \"file1\" was silently removed and no error message was shown.\n\nI'm running git 1.8.3.1\n\nCheers, Stefan"}]}