git-gui: Allow blame/browser subcommands on bare repositories
authorShawn O. Pearce <spearce@spearce.org>
Wed, 18 Jul 2007 03:58:56 +0000 (23:58 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 18 Jul 2007 03:58:56 +0000 (23:58 -0400)
commitc52c94524bdf9bbe515137b7f3f0240bc10a7f63
treee2606a9949f40667571e32f3d6aed87cec7d1539
parentba7cc6609e5726ddc59158b60ac01f5fc9717ab3
git-gui: Allow blame/browser subcommands on bare repositories

A long time ago Linus Torvalds tried to run git-gui on a bare
repository to look at the blame viewer, but it failed to start
because we required that the user run us only from within a
working directory that had a normal git repository associated
with it.

This change relaxes that requirement so that you can start the
tree browser or the blame viewer against a bare repository. In
the latter case we do require that you provide a revision and a
pathname if we cannot find the pathname in the current working
directory.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh