{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/17013","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/17013/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/17013/comments","events_url":"https://api.github.com/repos/atom/atom/issues/17013/events","html_url":"https://github.com/atom/atom/issues/17013","id":307686549,"number":17013,"title":"git rebase locks all commited files in working directory, deletes them after killing atom","user":{"login":"Weranders","id":31986260,"avatar_url":"https://avatars1.githubusercontent.com/u/31986260?v=4","gravatar_id":"","url":"https://api.github.com/users/Weranders","html_url":"https://github.com/Weranders","followers_url":"https://api.github.com/users/Weranders/followers","following_url":"https://api.github.com/users/Weranders/following{/other_user}","gists_url":"https://api.github.com/users/Weranders/gists{/gist_id}","starred_url":"https://api.github.com/users/Weranders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Weranders/subscriptions","organizations_url":"https://api.github.com/users/Weranders/orgs","repos_url":"https://api.github.com/users/Weranders/repos","events_url":"https://api.github.com/users/Weranders/events{/privacy}","received_events_url":"https://api.github.com/users/Weranders/received_events","type":"User","site_admin":false},"labels":[{"id":98444358,"url":"https://api.github.com/repos/atom/atom/labels/more-information-needed","name":"more-information-needed","color":"009800","default":false},{"id":171329633,"url":"https://api.github.com/repos/atom/atom/labels/needs-reproduction","name":"needs-reproduction","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":44,"created_at":"2018-03-22T15:12:35Z","updated_at":"2018-05-01T12:47:48Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n\r\nHave you read Atom's Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/atom/atom/blob/master/CODE_OF_CONDUCT.md\r\n\r\nDo you want to ask a question? Are you looking for support? The Atom message board is the best place for getting support: https://discuss.atom.io\r\n\r\n-->\r\n\r\n### Prerequisites\r\n\r\n* [X] Put an X between the brackets on this line if you have done all of the following:\r\n    * Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode\r\n    * Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/\r\n    * Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq\r\n    * Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom\r\n    * Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages\r\n\r\n### Description\r\n\r\nI'm working on a Windows 10 machine (as per work policy), hadn't had time yet to try to repoduce this issue in Linux:\r\n\r\nI was working on a project and made some essentially superfluous commits, as you do. So i wanted to squash/fixup them before pushing.\r\n\r\nSo i typed git rebase -i Head~5, flagged my commits as needed, and did :wq.\r\n\r\nAnd that's when i got Permission denied errors.\r\n\r\nI couldn't push nor rebase --abort nor reset, for every time i was denied permission to do anything on my files.\r\n\r\nWhile trying to solve the problem, i noticed that i didn't have any permissions on my commited files. I tried both local user and admin, but i couldn't even read permissions on my files. Nothing. Filesize looked ok though.\r\n\r\nI couldn't even read my files in atom. I was able to save my data with different filenames, but only in those files which were still open in tabs in atom though.\r\n\r\nAfter closing atom, all commited / locked files were deleted in my working directory. Just gone.\r\n\r\nLuckily, my files were still commited in my local repository and could be resetted, i was able to abort the rebase and push (just now, after atom freed them from its grasp).\r\n\r\nI'm able to reproduce this issue anytime, using Powershell or git bash or even cmd.exe, from within or without atom.\r\n\r\nRebasing isn't possible while Atom is open, but everything's normal when atom is closed.\r\n\r\nAfter a while i found a workaround:\r\n\r\ngit commit -m \"foo\"\r\ngit commit -m \"bar\"\r\ngit push\r\ngit pull\r\ngit rebase -i HEAD~x\r\n    ->pick hash(foo)\r\n    ->fixup hash(bar)\r\ngit push\r\n\r\nThis workflow seems to work. Everything else locks and deletes my data. But only when atom's running.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Open atom, do some changes\r\n2. git commit -m \"foo\"\r\n3. Do some more changes\r\n4. git commit -m \"bar\"\r\n5. git rebase -i Head~2\r\n5a.    ->pick hash(foo)\r\n5b.    ->fixup hash(bar)\r\n\r\n**Expected behavior:** Squash/Fixup my commits\r\n\r\n**Actual behavior:** All commited files get locked with unknown permissions and deleted from working dir after closing atom, but remain in the local repository.\r\n\r\n**Reproduces how often:** 100% (On Windows 10, Powershell or gitBash)\r\n\r\n### Versions\r\n\r\nAtom    : 1.25.0\r\nElectron: 1.7.11\r\nChrome  : 58.0.3029.110\r\nNode    : 7.9.0\r\n\r\nOS: Windows 10\r\n\r\n### Additional Information\r\n\r\nBuilt-in Atom Packages (92)\r\n├── atom-dark-syntax@0.29.0\r\n├── atom-dark-ui@0.53.1\r\n├── atom-light-syntax@0.29.0\r\n├── atom-light-ui@0.46.1\r\n├── base16-tomorrow-dark-theme@1.5.0\r\n├── base16-tomorrow-light-theme@1.5.0\r\n├── one-dark-ui@1.10.10\r\n├── one-light-ui@1.10.10\r\n├── one-dark-syntax@1.8.2\r\n├── one-light-syntax@1.8.2\r\n├── solarized-dark-syntax@1.1.4\r\n├── solarized-light-syntax@1.1.4\r\n├── about@1.8.0\r\n├── archive-view@0.64.2\r\n├── autocomplete-atom-api@0.10.7\r\n├── autocomplete-css@0.17.5\r\n├── autocomplete-html@0.8.4\r\n├── autocomplete-plus@2.40.2\r\n├── autocomplete-snippets@1.12.0\r\n├── autoflow@0.29.3\r\n├── autosave@0.24.6\r\n├── background-tips@0.27.1\r\n├── bookmarks@0.45.1\r\n├── bracket-matcher@0.89.1\r\n├── command-palette@0.43.5\r\n├── dalek@0.2.1\r\n├── deprecation-cop@0.56.9\r\n├── dev-live-reload@0.48.1\r\n├── encoding-selector@0.23.8\r\n├── exception-reporting@0.43.1\r\n├── find-and-replace@0.215.5\r\n├── fuzzy-finder@1.7.5\r\n├── github@0.10.3\r\n├── git-diff@1.3.9\r\n├── go-to-line@0.33.0\r\n├── grammar-selector@0.49.9\r\n├── image-view@0.62.4\r\n├── incompatible-packages@0.27.3\r\n├── keybinding-resolver@0.38.1\r\n├── line-ending-selector@0.7.5\r\n├── link@0.31.4\r\n├── markdown-preview@0.159.20\r\n├── metrics@1.2.6\r\n├── notifications@0.70.2\r\n├── open-on-github@1.3.1\r\n├── package-generator@1.3.0\r\n├── settings-view@0.254.1\r\n├── snippets@1.3.1\r\n├── spell-check@0.72.7\r\n├── status-bar@1.8.15\r\n├── styleguide@0.49.10\r\n├── symbols-view@0.118.2\r\n├── tabs@0.109.1\r\n├── timecop@0.36.2\r\n├── tree-view@0.221.3\r\n├── update-package-dependencies@0.13.1\r\n├── welcome@0.36.6\r\n├── whitespace@0.37.5\r\n├── wrap-guide@0.40.3\r\n├── language-c@0.59.2\r\n├── language-clojure@0.22.7\r\n├── language-coffee-script@0.49.3\r\n├── language-csharp@1.0.1\r\n├── language-css@0.42.10\r\n├── language-gfm@0.90.3\r\n├── language-git@0.19.1\r\n├── language-go@0.45.2\r\n├── language-html@0.49.0\r\n├── language-hyperlink@0.16.3\r\n├── language-java@0.28.0\r\n├── language-javascript@0.128.3\r\n├── language-json@0.19.1\r\n├── language-less@0.34.2\r\n├── language-make@0.22.3\r\n├── language-mustache@0.14.5\r\n├── language-objective-c@0.15.1\r\n├── language-perl@0.38.1\r\n├── language-php@0.43.1\r\n├── language-property-list@0.9.1\r\n├── language-python@0.49.2\r\n├── language-ruby@0.71.4\r\n├── language-ruby-on-rails@0.25.3\r\n├── language-sass@0.61.4\r\n├── language-shellscript@0.26.1\r\n├── language-source@0.9.0\r\n├── language-sql@0.25.10\r\n├── language-text@0.7.3\r\n├── language-todo@0.29.4\r\n├── language-toml@0.18.2\r\n├── language-typescript@0.3.2\r\n├── language-xml@0.35.2\r\n└── language-yaml@0.31.2\r\n\r\nCommunity Packages (7) C:\\Users\\js960077\\.atom\\packages\r\n├── data-atom@0.29.0\r\n├── git-plus@7.10.2\r\n├── gitlab@0.1.3-7\r\n├── gitlab-integration@0.4.6\r\n├── laravel@0.7.1\r\n├── platformio-ide-terminal@2.8.1\r\n└── teletype@0.10.0\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/385663097","html_url":"https://github.com/atom/atom/issues/17013#issuecomment-385663097","issue_url":"https://api.github.com/repos/atom/atom/issues/17013","id":385663097,"user":{"login":"palkatom","id":38882604,"avatar_url":"https://avatars2.githubusercontent.com/u/38882604?v=4","gravatar_id":"","url":"https://api.github.com/users/palkatom","html_url":"https://github.com/palkatom","followers_url":"https://api.github.com/users/palkatom/followers","following_url":"https://api.github.com/users/palkatom/following{/other_user}","gists_url":"https://api.github.com/users/palkatom/gists{/gist_id}","starred_url":"https://api.github.com/users/palkatom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palkatom/subscriptions","organizations_url":"https://api.github.com/users/palkatom/orgs","repos_url":"https://api.github.com/users/palkatom/repos","events_url":"https://api.github.com/users/palkatom/events{/privacy}","received_events_url":"https://api.github.com/users/palkatom/received_events","type":"User","site_admin":false},"created_at":"2018-05-01T12:47:48Z","updated_at":"2018-05-01T12:47:48Z","author_association":"NONE","body":"@byronigoe \r\nI tried your solution, it doesn't work for me.\r\n\r\nSteps I have taken:\r\n\r\n1. Create a branch and new file\r\n2. Commit changes to file\r\n3. Switch to branch in which file doesn't exist\r\n4. Switch back to branch where I committed changes\r\n\r\nPermission denied.\r\n\r\n.atom\\recovery folder is there and empty.\r\n\r\nI tried this on both 1.24.0 and 1.26.1 versions - same results."}}
{"actor":{"display_login":"palkatom"}}