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

[Bug report] git fetch/push fails from sub-directory

From
FHFrederic Heitzmann <frederic.heitzmann@gmail.com>
Date
Sep 20, 2011, 21:50 UTC
Message-ID
<j5b1qa$pki$1@dough.gmane.org>
Hi,

I found a bug in git fetch, with local repositories. git fetch works fine from the root directory, but it fails when called from deeper into the file tree of the repository.

git push fails the same way.
The bug is on 1.7.7.rc2 and on master.

mkdir repo1 cd repo1 git init . mkdir d touch d/f git add d/f git commit -m'initial commit' cd .. git clone repo1 repo2 cd repo2 git fetch ../repo1 # OK cd d git fetch ../../repo1 # failed

fatal: '../../repo1' does not appear to be a git repository fatal: The remote end hung up unexpectedly

-- Fred

Next: Junio C Hamano
Message 1 of 3 in “[Bug report] git fetch/push fails from sub-directory”
  1. Frederic HeitzmannSep 20, 2011
  2. Junio C HamanoSep 20, 2011
  3. Frederic HeitzmannSep 20, 2011

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.