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

aborted 'git fetch' leaves workspace unusable

From
Sstephen_leake@stephe-leake.org <stephen_leake@stephe-leake.org>
Date
Dec 30, 2013, 17:07 UTC
Message-ID
<7adcf8024c435b9b7178b86f01e447bb@stephe-leake.org>

I forgot to do 'ssh-add', so a 'git fetch' running under Windows Emacs tried to prompt for the ssh passphrase, could not find an ssh passphrase prompt program, and aborted.

That left the workspace unusable:
- .git/FETCH_HEAD is empty
     that causes 'git rev-parse FETCH_HEAD' to fail with a confusing
     error message.
- 'git fetch' just hangs after outputting:

remote: Counting objects: 15, done. remote: Compressing objects: 100% (8/8), done. remote: Total 9 (delta 5), reused 0 (delta 0)

     even with -v --progress

A fresh clone allowed me to continue working, but this will happen again, so I'd like a better fix.

The fetch is from stephen_leake@git.savannah.gnu.org/emacs/elpa.git

I'm running git 1.7.9 from Cygwin. I have access to Debian, where I can compile git and run it under the debugger, if that helps. I have not yet tried to reproduce this bug on Debian.

-- -- Stephe

Next: Junio C Hamano
Message 1 of 3 in “aborted 'git fetch' leaves workspace unusable”
  1. stephen_leake@stephe-leake.orgDec 30, 2013
  2. Junio C HamanoDec 30, 2013
  3. Torsten BögershausenDec 30, 2013

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.