Re: bug: git-stash save and symbolic links
- From
Simon Strandgaard <neoneye@gmail.com>
- Date
- Oct 20, 2008, 15:32 UTC
- Message-ID
- <df1390cc0810200832i4fa974fx1d70ed489aa1be02@mail.gmail.com>
- In-Reply-To
- <20081020151715.GA13553@coredump.intra.peff.net>
On Mon, Oct 20, 2008 at 5:17 PM, Jeff King <peff@peff.net> wrote:
> On Mon, Oct 20, 2008 at 10:34:53AM +0200, Simon Strandgaard wrote:
[snip]
> What version of git are you running (though I tried a few different > ones, and all passed my test)?
I have made some changes, so it can be reproduced
prompt> sh run.sh Initialized empty Git repository in /Users/neoneye/Desktop/test/repo/.git/ Created initial commit a2a7d6f: one 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 file before stash fatal: Not a git repository fatal: Not a git repository fatal: Not a git repository You do not have the initial commit yet
prompt> cat run.sh
rm -rf repo &&
rm -f linked &&
mkdir repo &&
cd repo &&
git init &&
echo content >file &&
git add file &&
git commit -m one &&
mkdir test &&
cd .. &&
ln -s repo/test linked &&
cd linked &&
echo cruft >>file &&
echo before stash &&
git stash &&
echo after stashprompt> pwd /Users/neoneye/Desktop/test prompt>
This is my computer
prompt> git --version git version 1.5.6.2 prompt> uname -a Darwin Macintosh.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386 prompt>
-- Simon Strandgaard http://toolboxapp.com/