git-shortlog hangs on bare repo without --bare option
From: Garry Dolley <hidden>
Date: 2016-06-15 22:45:14
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. Here's my output: [garry@garry-thinkpad] ~/dev (master) $ cd ebay4r/ <----- Repo with working tree (non-bare) [garry@garry-thinkpad] ~/dev/ebay4r (master) $ git shortlog -e -s 130 Garry Dolley [off-list ref] [garry@garry-thinkpad] ~/dev/ebay4r (master) $ cd .. [garry@garry-thinkpad] ~/dev (master) $ git clone --mirror ebay4r/ ebay4r-bare Initialized empty Git repository in /home/garry/dev/ebay4r-bare/ [garry@garry-thinkpad] ~/dev (master) $ cd ebay4r-bare/ [garry@garry-thinkpad] ~/dev/ebay4r-bare (master) $ git shortlog -e -s <hang> <----- *** It hangs here *** [garry@garry-thinkpad] ~/dev/ebay4r-bare (master) $ git --bare shortlog -e -s 130 Garry Dolley [off-list ref] [garry@garry-thinkpad] ~/dev/ebay4r-bare (master) $ If newlines break this output in your reader, you can also view it here: http://pastie.org/261134 I'm using git 1.6.0.1 Is this a bug? -- Garry Dolley ARP Networks, Inc. 818-206-0181 Los Angeles County REACT, Unit 336 WQGK336