From 1e50e30c48c4fb464fece61dbf97270697a75c37 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 21 Jul 2019 13:20:08 +0100 Subject: git-{unbare,unshallow}: use git-rev-parse --is-* options --- bin/git-unbare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/git-unbare') diff --git a/bin/git-unbare b/bin/git-unbare index 1a10b4ad..88c66d83 100755 --- a/bin/git-unbare +++ b/bin/git-unbare @@ -1,6 +1,6 @@ #!/bin/sh -if [ "$(git config --local --bool core.bare)" = "true" ]; then +if [ "$(git rev-parse --is-bare-repository)" = "true" ]; then mkdir .git mv * .git git config --local --bool core.bare false -- cgit v1.2.3