git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: bug: git-stash save and symbolic links

From
Jeff King <peff@peff.net>
Date
Oct 20, 2008, 15:17 UTC
Message-ID
<20081020151715.GA13553@coredump.intra.peff.net>
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
Previous: Simon StrandgaardNext: Simon Strandgaard
Message 2 of 5 in “bug: git-stash save and symbolic links”
  1. Simon StrandgaardOct 20, 2008
  2. Jeff KingOct 20, 2008
  3. Simon StrandgaardOct 20, 2008
  4. Simon StrandgaardOct 20, 2008
  5. Jeff KingOct 20, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.