git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Simon Strandgaard <neoneye@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: bug: git-stash save and symbolic links
Date: Mon, 20 Oct 2008 11:17:16 -0400	[thread overview]
Message-ID: <20081020151715.GA13553@coredump.intra.peff.net> (raw)
In-Reply-To: <df1390cc0810200134x68a8eb1fyc7f24650c8c9c5d3@mail.gmail.com>

On Mon, Oct 20, 2008 at 10:34:53AM +0200, Simon Strandgaard wrote:

> git-stash cannot find the repository when the path is a symbolic link.
> solution for me was to cd to the absolute path and then do git-stash.

Sorry, I can't reproduce here, using this test:

    mkdir repo &&
    cd repo &&
      git init &&
      echo content >file &&
      git add file &&
      git commit -m one &&
    cd .. &&
      ln -s repo linked &&
    cd repo &&
      echo cruft >>file &&
      git stash &&
      echo non-linked directory stashed ok &&
    cd ../linked &&
      echo cruft >>file &&
      git stash &&
      echo linked directory stashed ok

What version of git are you running (though I tried a few different
ones, and all passed my test)?

-Peff

  reply	other threads:[~2008-10-20 15:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-20  8:34 bug: git-stash save and symbolic links Simon Strandgaard
2008-10-20 15:17 ` Jeff King [this message]
2008-10-20 15:32   ` Simon Strandgaard
2008-10-20 15:39     ` Simon Strandgaard
2008-10-20 17:55       ` Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081020151715.GA13553@coredump.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=neoneye@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).