All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael J Gruber <michaeljgruber+gmane@fastmail.fm>
To: git@vger.kernel.org
Subject: Re: BUG simple "revert" fails
Date: Mon, 18 Aug 2008 11:14:55 +0200	[thread overview]
Message-ID: <g8beig$218$1@ger.gmane.org> (raw)
In-Reply-To: <48A76115.9060909@purple-people.org>

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

      reply	other threads:[~2008-08-18  9:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-16 23:21 BUG simple "revert" fails Anthony Booker
2008-08-18  9:14 ` Michael J Gruber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='g8beig$218$1@ger.gmane.org' \
    --to=michaeljgruber+gmane@fastmail.fm \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.