summaryrefslogtreecommitdiff
path: root/bin/git-unbare
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-07-21 13:20:08 +0100
committerSean Whitton <spwhitton@spwhitton.name>2019-07-21 13:20:08 +0100
commit1e50e30c48c4fb464fece61dbf97270697a75c37 (patch)
treed5d7af118b675c875506d0f194c7f42b4c8cddc4 /bin/git-unbare
parente8e1389422aea4f5a0a4710f71e98779f9ca8f32 (diff)
downloaddotfiles-1e50e30c48c4fb464fece61dbf97270697a75c37.tar.gz
git-{unbare,unshallow}: use git-rev-parse --is-* options
Diffstat (limited to 'bin/git-unbare')
-rwxr-xr-xbin/git-unbare2
1 files changed, 1 insertions, 1 deletions
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