All of lore.kernel.org
 help / color / mirror / Atom feed
* BUG simple "revert" fails
@ 2008-08-16 23:21 Anthony Booker
  2008-08-18  9:14 ` Michael J Gruber
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony Booker @ 2008-08-16 23:21 UTC (permalink / raw)
  To: git


Attached is a tarball with a couple of repositories.  eg-sub is a 
submodule in eg.  In eg there's a commit, 
cd626e6baaa0888c6090e1f040f9f0ba8bfef218, which inappropriately changed 
a file in eg-sub.  It's a newby mistake with git and submodules.

The problem is that the problem can't be reverted.  It fails with 
unknown object It is a submodule.

To reproduce, unpack the tarball, cd to eg and:
git revert cd626e6baaa0888c6090e1f040f9f0ba8bfef218

Thanks for your time.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BUG simple "revert" fails
  2008-08-16 23:21 BUG simple "revert" fails Anthony Booker
@ 2008-08-18  9:14 ` Michael J Gruber
  0 siblings, 0 replies; 2+ messages in thread
From: Michael J Gruber @ 2008-08-18  9:14 UTC (permalink / raw)
  To: git

Anthony Booker venit, vidit, dixit 17.08.2008 01:21:
> Attached is a tarball with a couple of repositories.  eg-sub is a 
> submodule in eg.  In eg there's a commit, 
> cd626e6baaa0888c6090e1f040f9f0ba8bfef218, which inappropriately changed 
> a file in eg-sub.  It's a newby mistake with git and submodules.
> 
> The problem is that the problem can't be reverted.  It fails with 
> unknown object It is a submodule.
> 
> To reproduce, unpack the tarball, cd to eg and:
> git revert cd626e6baaa0888c6090e1f040f9f0ba8bfef218
> 
> Thanks for your time.

There's no tarball attached, at least not when reading your post via gmane.

If the repo hasn't been published yet you probably want to rewrite
history rather than introducing a revert commit.

Revering is a bit complicated because the commit to be reverted
contains: subproject commit (unregistering from sub in super) plus add
commit (in super).

Michael

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-18  9:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-16 23:21 BUG simple "revert" fails Anthony Booker
2008-08-18  9:14 ` Michael J Gruber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.