From: Stephen Hemminger <shemminger@vyatta.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>,
skimo@liacs.nl, skimo@kotnet.org, git@vger.kernel.org
Subject: Re: Submodules and rewind
Date: Tue, 19 Feb 2008 16:52:43 -0800 [thread overview]
Message-ID: <20080219165243.7de6cbf5@extreme> (raw)
In-Reply-To: <alpine.LFD.1.00.0802191635010.7833@woody.linux-foundation.org>
On Tue, 19 Feb 2008 16:47:15 -0800 (PST)
Linus Torvalds <torvalds@linux-foundation.org> wrote:
>
>
> On Tue, 19 Feb 2008, Stephen Hemminger wrote:
> >
> > Don't be stupid, I am not trying be obstreperous, just fix the problem.
>
> Umm. Stephen - this is the first time you even *describe* the problem.
>
> Your previous emails were just "hey, submodules don't work, fix it".
No I abused a submodule and broke it, it isn't git's fault directly.
> Why do you then call Dscho stupid for pointing out that you never even
> bothered to reveal any details of what your problem was?
The cause was a accidental push of the wrong tree up into a public
repository. So I manually went back and moved the original tree aside
and replaced it with a new tree that was at the point before the errant
push.
>
> But it's not clear how you even got into that state to begin with. How did
> your index get that confused? You said "I had to rewind one project back
> to a known good state", but considering the output, it looks like you
> didn't actually rewind it, but left it in some half-way state.
>
> A "git reset" should have reset the index, or you could probably have done
> something like "git add <submodule>" to basically force the index entry
> for just that submodule to the current state it had.
>
> At a guess, it *looks* like you reset the submodules themselves, but never
> reset the superproject.
>
> Linus
The submodule is okay shape but the superproject isn't.
next prev parent reply other threads:[~2008-02-20 0:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-19 22:06 Submodules and rewind Stephen Hemminger
2008-02-19 22:32 ` Sven Verdoolaege
2008-02-19 23:23 ` Stephen Hemminger
2008-02-19 23:35 ` Johannes Schindelin
2008-02-20 0:15 ` Stephen Hemminger
2008-02-20 0:47 ` Linus Torvalds
2008-02-20 0:52 ` Stephen Hemminger [this message]
2008-02-20 1:06 ` Johannes Schindelin
2008-02-20 1:13 ` Stephen Hemminger
2008-02-20 1:22 ` Johannes Schindelin
2008-02-20 2:25 ` Stephen Hemminger
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=20080219165243.7de6cbf5@extreme \
--to=shemminger@vyatta.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=skimo@kotnet.org \
--cc=skimo@liacs.nl \
--cc=torvalds@linux-foundation.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.