{"thread":{"id":"8596","subject":"[BUG] \"git checkout branch\" on full disk doesn't recover from errors","startedAt":"2007-06-13T23:33:41Z","lastAt":"2007-06-13T23:33:41Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"45019","messageId":"200706140133.42513.jnareb@gmail.com","threadId":"8596","inReplyTo":null,"subject":"[BUG] \"git checkout branch\" on full disk doesn't recover from errors","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-06-13T23:33:41Z","receivedAt":"2007-06-13T23:33:41Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"I have accidentally (errorneous program running in parallel) run \n\"git checkout gitweb/web\" (where 'gitweb/web' is a branch) on a full \ndisk. Git correctly notices error, but doesn't recover fully from it.\n\n  $ git checkout gitweb/web\n  fatal: unable to write new index file\n\nIt would be nice if git has shown also the error message from filesystem \n(from OS), for example if it was full disk, read-only filesystem (for \nexample wrong mount options, or running from CD), or incorrect \npermissions.\n\n  $ <free disk space>\n  $ git checkout gitweb/web\n  fatal: Entry '.gitignore' not uptodate. Cannot merge.\n\nThe '.gitignore' was last file changed in last commit on the page I was \non (namely 'master'). It looks like git didn't recover fully from \nattempted branch change. \"git diff\" and \"git status\" shows many \nmodified files, not only '.gitignore'.\n\nWhat is a bit strange that mixed reset (\"git reset HEAD\") is not enough\n\n  $ git reset HEAD\n  <multitude of \"needs update\" messages>\n\nFortunately, it is easy to recover using \"git reset --hard HEAD\", \nalthough beginner user could have some problems with this.\n\n-- \nJakub Narebski\nPoland\n"}]}