Re: bug: git-stash save and symbolic links
- From
Simon Strandgaard <neoneye@gmail.com>
- Date
- Oct 20, 2008, 15:39 UTC
- Message-ID
- <df1390cc0810200839q5eddad1cp4bc14762724d8848@mail.gmail.com>
- In-Reply-To
- <df1390cc0810200832i4fa974fx1d70ed489aa1be02@mail.gmail.com>
On Mon, Oct 20, 2008 at 5:32 PM, Simon Strandgaard <neoneye@gmail.com> wrote:
Show 8 quoted lines
> 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
[snip]
Sorry, forget the other run.sh I forgot to add the dir to the repository. Here the linked dir is included in the repository.
prompt> sh run.sh Initialized empty Git repository in /Users/neoneye/Desktop/test/repo/.git/ Created initial commit b904776: one 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 file Created commit 19746b5: two 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 test/file2 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 &&
echo content >test/file2 &&
git add test/file2 &&
git commit -m two &&
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>
[snip]
Show 14 quoted lines
> 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/ >
-- Simon Strandgaard http://toolboxapp.com/