From: Joey Hess Date: Tue, 19 Jan 2010 00:26:42 GMT Subject: bug: git-bundle create foo --stdin -> segfault Message-ID: <20100119002641.GA31434@gnu.kitenet.net> joey@gnu:~/tmp/new>echo master | git bundle create ../my.bundle --stdin zsh: segmentation fault git bundle create ../my.bundle --stdin I noticed that git bundle --stdin actually attempts to read from stdin past EOF. You can see this if you manually type into its stdin. % git-bundle create ../bundle --stdin master ^D master ^D fatal: Refusing to create empty bundle. The first stdin read is done by the internal call to rev-list --stdin. The second stdin read is done by the call to setup_revisions(), which has its own handler for --stdin. Bug seen with git version 1.6.5.7 / 1.6.6.243.gff6d2 I also tried going back to 22568f0a336ac37ae7329c917857b455839d1d09, but still see a bug with Adam Brewster's initial code to add --stdin to git-bundle. That code still tries to read stdin twice. If it sees "master" both times, it does create a bundle. -- see shy jo