* [PATCH] completion: use git rev-parse to detect bare repos
@ 2009-05-18 16:24 Giuseppe Bilotta
2009-05-20 22:54 ` Shawn O. Pearce
0 siblings, 1 reply; 2+ messages in thread
From: Giuseppe Bilotta @ 2009-05-18 16:24 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: git, Giuseppe Bilotta
Its check is more robust than a config check for core.bare
---
contrib/completion/git-completion.bash | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index ba13c49..0c8bb53 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -132,7 +132,7 @@ __git_ps1 ()
local c
if [ "true" = "$(git rev-parse --is-inside-git-dir 2>/dev/null)" ]; then
- if [ "true" = "$(git config --bool core.bare 2>/dev/null)" ]; then
+ if [ "true" = "$(git rev-parse --is-bare-repository 2>/dev/null)" ]; then
c="BARE:"
else
b="GIT_DIR!"
--
1.6.3.1.137.g29aa
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] completion: use git rev-parse to detect bare repos
2009-05-18 16:24 [PATCH] completion: use git rev-parse to detect bare repos Giuseppe Bilotta
@ 2009-05-20 22:54 ` Shawn O. Pearce
0 siblings, 0 replies; 2+ messages in thread
From: Shawn O. Pearce @ 2009-05-20 22:54 UTC (permalink / raw)
To: Giuseppe Bilotta; +Cc: git, Junio C Hamano
Giuseppe Bilotta <giuseppe.bilotta@gmail.com> wrote:
> Its check is more robust than a config check for core.bare
Trivially-Acked-by: Shawn O. Pearce <spearce@spearce.org>
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index ba13c49..0c8bb53 100755
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -132,7 +132,7 @@ __git_ps1 ()
> local c
>
> if [ "true" = "$(git rev-parse --is-inside-git-dir 2>/dev/null)" ]; then
> - if [ "true" = "$(git config --bool core.bare 2>/dev/null)" ]; then
> + if [ "true" = "$(git rev-parse --is-bare-repository 2>/dev/null)" ]; then
> c="BARE:"
> else
> b="GIT_DIR!"
> --
> 1.6.3.1.137.g29aa
>
--
Shawn.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-20 22:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-18 16:24 [PATCH] completion: use git rev-parse to detect bare repos Giuseppe Bilotta
2009-05-20 22:54 ` Shawn O. Pearce
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.