{"thread":{"id":"9465","subject":"git stash doesn't handle submodules with modifications","startedAt":"2007-08-10T06:24:19Z","lastAt":"2007-08-10T06:24:19Z","messageCount":1,"participants":["Steffen Prohaska"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"50380","messageId":"B6C5D5E2-6EBA-427A-8B79-C545BB23226B@zib.de","threadId":"9465","inReplyTo":null,"subject":"git stash doesn't handle submodules with modifications","fromName":"Steffen Prohaska","fromEmail":"prohaska@zib.de","sentAt":"2007-08-10T06:24:19Z","receivedAt":"2007-08-10T06:24:19Z","isPatch":false,"sender":{"key":"prohaska@zib.de","avatar":"https://avatars.githubusercontent.com/u/217580?v=4"},"body":"Stash in combination with a submodule does not work as\nexpected. A submodule with modifications is not handled\ncorrectly if it has modifications.\n\nI started with some changes in the working tree and with\na submodule having changes, too. I do 'git stash', which\nstashes away all my changes to the working tree, but it\ndoes not store changes to the submodule. Thus,\n'git status' still shows a modified submodule.\n\n'git apply' refuses to work with a modified submodule with:\n'Cannot restore on top of a dirty state'.\n\nSo, I have stashed my changes, but can't get them back\neasily. This happend to me in the msysgit repo, which\nincludes git as a submodule.\n\nWhat would be the right way to solve this?\nI'd expect that stash somehow would ignore the submodule.\nBut it may be more correct to include the submodule into\nthe stash?\n\n\tSteffen\n"}]}