Re: Bug: Pulling remotes into an empty repo deletes the index

2013-08-10 Thread Jeff King
On Sat, Aug 03, 2013 at 09:57:28AM -0700, Jonathan Nieder wrote: All is not lost. Your local files should be stored in the repository's reflog. Examine the output of git reflog. You can then reset your working directory to obtain those files by doing something _like_ git reset --hard

Re: Bug: Pulling remotes into an empty repo deletes the index

2013-08-03 Thread Adam A
Hello, the project readme on github points here for submitting bug reports, but please let me know if I'm in the wrong place. Steps to reproduce: - create a remote repository at URL with commit(s) in it - e.g., a new github repo with README and LICENSE files auto-added - write some files in a

Re: Bug: Pulling remotes into an empty repo deletes the index

2013-08-03 Thread Daniel Convissor
Hi Adam: On Sat, Aug 03, 2013 at 10:01:30PM +1000, Adam A wrote: - create a remote repository at URL with commit(s) in it - e.g., a new github repo with README and LICENSE files auto-added - write some files in a local directory - git init - git add . - the contents of the directory are

Re: Bug: Pulling remotes into an empty repo deletes the index

2013-08-03 Thread Jonathan Nieder
Daniel Convissor wrote: All is not lost. Your local files should be stored in the repository's reflog. Examine the output of git reflog. You can then reset your working directory to obtain those files by doing something _like_ git reset --hard HEAD@{1}. Adam hadn't made a commit, so that

Re: Bug: Pulling remotes into an empty repo deletes the index

2013-08-03 Thread Daniel Convissor
Hey Again Adam: On Sat, Aug 03, 2013 at 12:39:15PM -0400, Daniel Convissor wrote: All is not lost. Your local files should be stored in the repository's reflog. Examine the output of git reflog. You can then reset your working directory to obtain those files by doing something _like_ git

Re: Bug: Pulling remotes into an empty repo deletes the index

2013-08-03 Thread Daniel Convissor
Heya: On Sat, Aug 03, 2013 at 09:57:28AM -0700, Jonathan Nieder wrote: Adam hadn't made a commit, so that wouldn't work in this case. Oh, good catch. I saw the add and assumed there was a commit there. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y

Re: Bug: Pulling remotes into an empty repo deletes the index

2013-08-03 Thread Adam A
On Sun, Aug 4, 2013 at 2:57 AM, Jonathan Nieder jrnie...@gmail.com wrote: Daniel Convissor wrote: All is not lost. Your local files should be stored in the repository's reflog. Examine the output of git reflog. You can then reset your working directory to obtain those files by doing