diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-07-21 13:20:08 +0100 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-07-21 13:20:08 +0100 |
commit | 1e50e30c48c4fb464fece61dbf97270697a75c37 (patch) | |
tree | d5d7af118b675c875506d0f194c7f42b4c8cddc4 /bin/git-unbare | |
parent | e8e1389422aea4f5a0a4710f71e98779f9ca8f32 (diff) | |
download | dotfiles-1e50e30c48c4fb464fece61dbf97270697a75c37.tar.gz |
git-{unbare,unshallow}: use git-rev-parse --is-* options
Diffstat (limited to 'bin/git-unbare')
-rwxr-xr-x | bin/git-unbare | 2 |
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 |