{"thread":{"id":"15043","subject":"BUG simple \"revert\" fails","startedAt":"2008-08-16T23:21:57Z","lastAt":"2008-08-18T09:14:55Z","messageCount":2,"participants":["Anthony Booker","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"87393","messageId":"48A76115.9060909@purple-people.org","threadId":"15043","inReplyTo":null,"subject":"BUG simple \"revert\" fails","fromName":"Anthony Booker","fromEmail":"tb@purple-people.org","sentAt":"2008-08-16T23:21:57Z","receivedAt":"2008-08-16T23:21:57Z","isPatch":false,"sender":{"key":"tb@purple-people.org","avatar":null},"body":"\nAttached is a tarball with a couple of repositories.  eg-sub is a \nsubmodule in eg.  In eg there's a commit, \ncd626e6baaa0888c6090e1f040f9f0ba8bfef218, which inappropriately changed \na file in eg-sub.  It's a newby mistake with git and submodules.\n\nThe problem is that the problem can't be reverted.  It fails with \nunknown object It is a submodule.\n\nTo reproduce, unpack the tarball, cd to eg and:\ngit revert cd626e6baaa0888c6090e1f040f9f0ba8bfef218\n\nThanks for your time.\n"},{"id":"87523","messageId":"g8beig$218$1@ger.gmane.org","threadId":"15043","inReplyTo":"48A76115.9060909@purple-people.org","subject":"Re: BUG simple \"revert\" fails","fromName":"Michael J Gruber","fromEmail":"michaeljgruber+gmane@fastmail.fm","sentAt":"2008-08-18T09:14:55Z","receivedAt":"2008-08-18T09:14:55Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Anthony Booker venit, vidit, dixit 17.08.2008 01:21:\n> Attached is a tarball with a couple of repositories.  eg-sub is a \n> submodule in eg.  In eg there's a commit, \n> cd626e6baaa0888c6090e1f040f9f0ba8bfef218, which inappropriately changed \n> a file in eg-sub.  It's a newby mistake with git and submodules.\n> \n> The problem is that the problem can't be reverted.  It fails with \n> unknown object It is a submodule.\n> \n> To reproduce, unpack the tarball, cd to eg and:\n> git revert cd626e6baaa0888c6090e1f040f9f0ba8bfef218\n> \n> Thanks for your time.\n\nThere's no tarball attached, at least not when reading your post via gmane.\n\nIf the repo hasn't been published yet you probably want to rewrite\nhistory rather than introducing a revert commit.\n\nRevering is a bit complicated because the commit to be reverted\ncontains: subproject commit (unregistering from sub in super) plus add\ncommit (in super).\n\nMichael\n"}]}