diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-08-17 20:55:27 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-08-17 20:55:27 -0400 |
commit | 8878397b6d57d5f16f262beb64f5d169db64e2c1 (patch) | |
tree | 022fb8382e2bfb23ba3df1ff24d84a34d38d92b7 /tools/git-setup | |
parent | f6fb0e626c492d854f21f3f91cefd288bd21d346 (diff) |
oops, tabs, modes
Diffstat (limited to 'tools/git-setup')
-rwxr-xr-x | tools/git-setup | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/git-setup b/tools/git-setup index 6f3c36f1cb..f40a7724d9 100755 --- a/tools/git-setup +++ b/tools/git-setup @@ -3,21 +3,21 @@ cd "$(dirname -- "$0")" cd "$(git rev-parse --show-toplevel)" if [ -f .git/hooks/pre-commit.sample ] && [ ! -f .git/hooks/pre-commit ]; then - # This part is allowed to fail - cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ - chmod +x .git/hooks/pre-commit && \ - echo "Activated pre-commit hook." || : + # This part is allowed to fail + cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ + chmod +x .git/hooks/pre-commit && \ + echo "Activated pre-commit hook." || : fi declare -A fetch git config -f .gitconfig --get-regexp '.*' | while read -r key val; do - if [[ $key = *.fetch ]]; then - if [[ -z "${fetch[$key]}" ]]; then - git config --local --unset-all "$key" - fetch[$key]='true' - fi - git config --local --add "$key" "$val" - else - git config --local "$key" "$val" - fi + if [[ $key = *.fetch ]]; then + if [[ -z "${fetch[$key]}" ]]; then + git config --local --unset-all "$key" + fetch[$key]='true' + fi + git config --local --add "$key" "$val" + else + git config --local "$key" "$val" + fi done |