{"action":"created","issue":{"url":"https://api.github.com/repos/git-lfs/git-lfs/issues/3044","repository_url":"https://api.github.com/repos/git-lfs/git-lfs","labels_url":"https://api.github.com/repos/git-lfs/git-lfs/issues/3044/labels{/name}","comments_url":"https://api.github.com/repos/git-lfs/git-lfs/issues/3044/comments","events_url":"https://api.github.com/repos/git-lfs/git-lfs/issues/3044/events","html_url":"https://github.com/git-lfs/git-lfs/issues/3044","id":328903089,"node_id":"MDU6SXNzdWUzMjg5MDMwODk=","number":3044,"title":"Insistently automatically edits /etc/git/hooks/pre-push","user":{"login":"ethus3h","id":10457522,"node_id":"MDQ6VXNlcjEwNDU3NTIy","avatar_url":"https://avatars3.githubusercontent.com/u/10457522?v=4","gravatar_id":"","url":"https://api.github.com/users/ethus3h","html_url":"https://github.com/ethus3h","followers_url":"https://api.github.com/users/ethus3h/followers","following_url":"https://api.github.com/users/ethus3h/following{/other_user}","gists_url":"https://api.github.com/users/ethus3h/gists{/gist_id}","starred_url":"https://api.github.com/users/ethus3h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethus3h/subscriptions","organizations_url":"https://api.github.com/users/ethus3h/orgs","repos_url":"https://api.github.com/users/ethus3h/repos","events_url":"https://api.github.com/users/ethus3h/events{/privacy}","received_events_url":"https://api.github.com/users/ethus3h/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-04T04:18:32Z","updated_at":"2018-06-11T20:44:29Z","closed_at":"2018-06-11T20:44:29Z","author_association":"NONE","body":"Hi.\r\n\r\nI don't use git-lfs. I only installed it as a dependency of another app. The only time I would ever want it to run is if I'm cloning a repository that used it, to download any required files.\r\n\r\nHowever, it keeps inserting itself into /etc/git/hooks/pre-push, making it impossible for me to push any of my repositories until I empty that file. Even when I left it existing, as an empty file, it still got modified. This isn't an urgent issue for me, since I'm uninstalling it (editing that file every day to be able to keep working is simply unsustainable).\r\n\r\nI thought I'd report this to let you know, though, that it would be nice if simply installing this tool and (judging by the source code of the dependent application) running `git lfs clone` — with no intention of ever pushing to a repository using it — didn't break git push for every repository on my system until I configure it (or whatever it wants, I haven't looked into it).\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/git-lfs/git-lfs/issues/comments/396381022","html_url":"https://github.com/git-lfs/git-lfs/issues/3044#issuecomment-396381022","issue_url":"https://api.github.com/repos/git-lfs/git-lfs/issues/3044","id":396381022,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjM4MTAyMg==","user":{"login":"ttaylorr","id":443245,"node_id":"MDQ6VXNlcjQ0MzI0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/443245?v=4","gravatar_id":"","url":"https://api.github.com/users/ttaylorr","html_url":"https://github.com/ttaylorr","followers_url":"https://api.github.com/users/ttaylorr/followers","following_url":"https://api.github.com/users/ttaylorr/following{/other_user}","gists_url":"https://api.github.com/users/ttaylorr/gists{/gist_id}","starred_url":"https://api.github.com/users/ttaylorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttaylorr/subscriptions","organizations_url":"https://api.github.com/users/ttaylorr/orgs","repos_url":"https://api.github.com/users/ttaylorr/repos","events_url":"https://api.github.com/users/ttaylorr/events{/privacy}","received_events_url":"https://api.github.com/users/ttaylorr/received_events","type":"User","site_admin":true},"created_at":"2018-06-11T20:44:29Z","updated_at":"2018-06-11T20:44:29Z","author_association":"MEMBER","body":"Hi @ethus3h, thanks for opening this issue, and I'm sorry that you're having trouble! I think that what's going on here is that `git lfs clone` installs Git LFS in order to satisfy the installation steps that occur once per-repository-per-machine. Since it's common to use Git LFS with both pushing and pulling, we try and make that case as frictionless as possible.\r\n\r\nYou can disable this behavior with the `--skip-repo` option (i.e., `git lfs clone --skip-repo`), or avoid using `git lfs clone` altogether (since the command is deprecated, and can be replaced with `git clone` instead).\r\n\r\nPlease let me know if you have any other questions here, and I'd be more than happy to help out. Thanks!"}}
{"actor":{"display_login":"ttaylorr"}}