error: could not lock config file .git/config: 权限不够

在gclient runhooks过程中出现问题:

Your copy of depot_tools is configured to fetch from an obsolete URL:

  https://chromium.googlesource.com/chromium/tools/depot_tools

OK to update it to https://chromium.googlesource.com/chromium/tools/depot_tools.git ? [Y/n] y
error: could not lock config file .git/config: 权限不够


权限不够

https://www.crifan.com/mac_brew_update_error_could_not_lock_config_file_git_config_permission_denied/

重点:

sudo chgrp -R admin /usr/local
sudo chmod -R g+w /usr/local
改变目录权限

你可能感兴趣的:(error: could not lock config file .git/config: 权限不够)