{"thread":{"id":"19407","subject":"[PATCH] completion: use git rev-parse to detect bare repos","startedAt":"2009-05-18T16:24:30Z","lastAt":"2009-05-20T22:54:30Z","messageCount":2,"participants":["Giuseppe Bilotta","Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"114192","messageId":"1242663870-11895-1-git-send-email-giuseppe.bilotta@gmail.com","threadId":"19407","inReplyTo":null,"subject":"[PATCH] completion: use git rev-parse to detect bare repos","fromName":"Giuseppe Bilotta","fromEmail":"giuseppe.bilotta@gmail.com","sentAt":"2009-05-18T16:24:30Z","receivedAt":"2009-05-18T16:24:30Z","isPatch":true,"sender":{"key":"giuseppe.bilotta@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1464?v=4"},"body":"Its check is more robust than a config check for core.bare\n---\n contrib/completion/git-completion.bash |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex ba13c49..0c8bb53 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -132,7 +132,7 @@ __git_ps1 ()\n \t\tlocal c\n \n \t\tif [ \"true\" = \"$(git rev-parse --is-inside-git-dir 2>/dev/null)\" ]; then\n-\t\t\tif [ \"true\" = \"$(git config --bool core.bare 2>/dev/null)\" ]; then\n+\t\t\tif [ \"true\" = \"$(git rev-parse --is-bare-repository 2>/dev/null)\" ]; then\n \t\t\t\tc=\"BARE:\"\n \t\t\telse\n \t\t\t\tb=\"GIT_DIR!\"\n-- \n1.6.3.1.137.g29aa\n"},{"id":"114376","messageId":"20090520225430.GU30527@spearce.org","threadId":"19407","inReplyTo":"1242663870-11895-1-git-send-email-giuseppe.bilotta@gmail.com","subject":"Re: [PATCH] completion: use git rev-parse to detect bare repos","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2009-05-20T22:54:30Z","receivedAt":"2009-05-20T22:54:30Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Giuseppe Bilotta <giuseppe.bilotta@gmail.com> wrote:\n> Its check is more robust than a config check for core.bare\n\nTrivially-Acked-by: Shawn O. Pearce <spearce@spearce.org>\n\n> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\n> index ba13c49..0c8bb53 100755\n> --- a/contrib/completion/git-completion.bash\n> +++ b/contrib/completion/git-completion.bash\n> @@ -132,7 +132,7 @@ __git_ps1 ()\n>  \t\tlocal c\n>  \n>  \t\tif [ \"true\" = \"$(git rev-parse --is-inside-git-dir 2>/dev/null)\" ]; then\n> -\t\t\tif [ \"true\" = \"$(git config --bool core.bare 2>/dev/null)\" ]; then\n> +\t\t\tif [ \"true\" = \"$(git rev-parse --is-bare-repository 2>/dev/null)\" ]; then\n>  \t\t\t\tc=\"BARE:\"\n>  \t\t\telse\n>  \t\t\t\tb=\"GIT_DIR!\"\n> -- \n> 1.6.3.1.137.g29aa\n> \n\n-- \nShawn.\n"}]}