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

Re: git-shortlog hangs on bare repo without --bare option

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 27, 2008, 22:19 UTC
Message-ID
<7vvdxmm78o.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<48B5C9E4.4030807@lsrfire.ath.cx>
René Scharfe <rene.scharfe@lsrfire.ath.cx> writes:
Show 9 quoted lines
> Garry Dolley schrieb:
>> I didn't see this happen with git 1.5.x, but if you do git-shortlog on a bare 
>> repo, without specifying --bare, the command will seemingly hang indefinitely.
>
> FWIW, I tried git 1.5.0 and it hangs, too.  Which exact version did work
> for you?  Could you, based on it, bisect the commit that introduced this
> behaviour?
>
> As a workaround, you can use "git log | git shortlog".

It is not a workaround. Shortlog can work as a filter to "git log", but if you give revs to work on, e.g. "git shortlog -s -n v1.5.6.5.." or "git shortlog HEAD", it can generate the log and feed to itself.

Somehow it (perhaps incorrectly, I did not look at the command line input) judging that your command line is telling it not to do the log generation itself but instead you will feed the log from its standard input, which happens to be your terminal. So another workaround would be to type the series of log messages ;-)

Previous: Garry DolleyNext: Junio C Hamano
Message 6 of 12 in “git-shortlog hangs on bare repo without --bare option”
  1. Garry DolleyAug 27, 2008
  2. Junio C HamanoAug 27, 2008
  3. Garry DolleyAug 27, 2008
  4. René ScharfeAug 27, 2008
  5. Garry DolleyAug 27, 2008
  6. Junio C HamanoAug 27, 2008
  7. Junio C HamanoAug 27, 2008
  8. Junio C HamanoAug 27, 2008
  9. Junio C HamanoAug 27, 2008
  10. Jeff KingAug 27, 2008
  11. Junio C HamanoAug 28, 2008
  12. Nguyen Thai Ngoc DuyAug 28, 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.