completion: use git rev-parse to detect bare repos
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 18 May 2009 16:24:30 +0000 (18:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 May 2009 01:35:23 +0000 (18:35 -0700)
commit8dfb17e1fd7dec1d3a1978eb46743964c481cd08
tree178eeac8f356e29adefc9292a4f89a8b5c21f36a
parentfd73ccf27956f24dc0db9acd4ff7d9dcd5e41bfb
completion: use git rev-parse to detect bare repos

Its check is more robust than a config check for core.bare

Trivially-Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash