Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

can't disable analytics #31

Closed
ssreekanth opened this issue May 8, 2016 · 4 comments
Closed

can't disable analytics #31

ssreekanth opened this issue May 8, 2016 · 4 comments
Assignees
Labels

Comments

@ssreekanth
Copy link

Installed linuxbrew on CentOS 6.5 (thanks to #16 fix). However, when I tried to opt out of analytics, it threw the following error -

$ brew analytics off
error: could not lock config file /home/testuser/.linuxbrew/.git/config: No such file or directory
Error: Failure while executing: git config --file=/home/testuser/.linuxbrew/.git/config --replace-all homebrew.analyticsdisabled true
@sjackman sjackman self-assigned this May 8, 2016
@sjackman sjackman added the bug label May 8, 2016
@sjackman
Copy link
Member

sjackman commented May 8, 2016

Try

export HOMEBREW_NO_ANALYTICS=1
brew update
brew analytics off

If that doesn't work, try brew install git before brew update.

@ssreekanth
Copy link
Author

That worked. Thanks @sjackman!

@sjackman sjackman closed this as completed May 8, 2016
@sjackman
Copy link
Member

sjackman commented May 8, 2016

No worries! I'll add one in my head to the number of Linuxbrew users reported by analytics. =)

@ssreekanth
Copy link
Author

Now that you gave the solution, you would never know how many other users disabled the analytics. ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants