{"action":"created","issue":{"url":"https://api.github.com/repos/drush-ops/drush/issues/1581","labels_url":"https://api.github.com/repos/drush-ops/drush/issues/1581/labels{/name}","comments_url":"https://api.github.com/repos/drush-ops/drush/issues/1581/comments","events_url":"https://api.github.com/repos/drush-ops/drush/issues/1581/events","html_url":"https://github.com/drush-ops/drush/issues/1581","id":103840365,"number":1581,"title":"'drush up drupal' deleted my .git file in Drupal root","user":{"login":"joachim-n","id":105262,"avatar_url":"https://avatars.githubusercontent.com/u/105262?v=3","gravatar_id":"","url":"https://api.github.com/users/joachim-n","html_url":"https://github.com/joachim-n","followers_url":"https://api.github.com/users/joachim-n/followers","following_url":"https://api.github.com/users/joachim-n/following{/other_user}","gists_url":"https://api.github.com/users/joachim-n/gists{/gist_id}","starred_url":"https://api.github.com/users/joachim-n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joachim-n/subscriptions","organizations_url":"https://api.github.com/users/joachim-n/orgs","repos_url":"https://api.github.com/users/joachim-n/repos","events_url":"https://api.github.com/users/joachim-n/events{/privacy}","received_events_url":"https://api.github.com/users/joachim-n/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-29T08:51:14Z","updated_at":"2015-09-01T18:56:52Z","closed_at":"2015-08-31T15:45:38Z","body":"```\r\njoachim$ git push\r\nCounting objects: 154, done.\r\nDelta compression using up to 2 threads.\r\nCompressing objects: 100% (79/79), done.\r\nWriting objects: 100% (79/79), 11.87 KiB | 0 bytes/s, done.\r\nTotal 79 (delta 66), reused 0 (delta 0)\r\nTo git@bitbucket.org:joachim-n/foo.git\r\n   33e5438..47d8d1c  master -> master\r\n~/Sites/joachim-accounts joachim$ drush up drupal\r\nUpdate information last refreshed: Sat, 29/08/2015 - 09:39\r\n Name    Installed Version  Proposed version  Message\r\n Drupal  7.38               7.39              SECURITY UPDATE available\r\n\r\n\r\nCode updates will be made to drupal core.\r\nWARNING:  Updating core will discard any modifications made to Drupal core files, most noteworthy among these are .htaccess and robots.txt.  If you have made any modifications to these files, please back them up before updating so that you can re-create your modifications in the updated version of the file.\r\nNote: Updating core can potentially break your site. It is NOT recommended to update production sites without prior testing.\r\n\r\nDo you really want to continue? (y/n): y\r\nProject drupal was updated successfully. Installed version is now 7.39.\r\nNo database updates required                                         [success]\r\n'all' cache was cleared.                                             [success]\r\nFinished performing updates.                                         [ok]\r\njoachim$ git add modules/ themes/ includes/ misc/ profiles/\r\nfatal: Not a git repository (or any of the parent directories): .git\r\n```\r\n\r\nThe only explanation I can see is that in moving things around to update core, Drush wiped the .git folder!"},"comment":{"url":"https://api.github.com/repos/drush-ops/drush/issues/comments/136827663","html_url":"https://github.com/drush-ops/drush/issues/1581#issuecomment-136827663","issue_url":"https://api.github.com/repos/drush-ops/drush/issues/1581","id":136827663,"user":{"login":"weitzman","id":7740,"avatar_url":"https://avatars.githubusercontent.com/u/7740?v=3","gravatar_id":"","url":"https://api.github.com/users/weitzman","html_url":"https://github.com/weitzman","followers_url":"https://api.github.com/users/weitzman/followers","following_url":"https://api.github.com/users/weitzman/following{/other_user}","gists_url":"https://api.github.com/users/weitzman/gists{/gist_id}","starred_url":"https://api.github.com/users/weitzman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weitzman/subscriptions","organizations_url":"https://api.github.com/users/weitzman/orgs","repos_url":"https://api.github.com/users/weitzman/repos","events_url":"https://api.github.com/users/weitzman/events{/privacy}","received_events_url":"https://api.github.com/users/weitzman/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T18:56:52Z","updated_at":"2015-09-01T18:56:52Z","body":"Can you test earlier versions of Drush and verify that this used to work. To my knowledge, this is how updatecode has worked for years."}}