git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: GSOC proposal

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 24, 2011, 23:47 UTC
Message-ID
<7vtyes6pya.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4D8BD358.1030603@web.de>
Jens Lehmann <Jens.Lehmann@web.de> writes:
Show 8 quoted lines
>> == Preventing false "pointers" ==
>> It's far too easy to push a gitrepo pointing to a submodule version that
>> is not existing on the server. Prevent this by checking for available
>> submodule versions before acceptingt the push.
>
> Yes, requiring to force such a push is an issue raised quite often (I
> think addressing this issue would be a good starting point for people
> who want to get involved in enhancing the submodule experience).
You need to be careful, though.

That check can only be sanely done at a hosting site that hosts _both_ the superproject and the submodule repositories. It might make more sense to have this check on the side that pushes, which by definition should have both superprojet and the submodule. Fail, or prompt to confirm, a push from the superproject when it is detected that the submodule commits bound to the commits in the superproject have not been pushed out.

> (And, as every year, it's a good idea for a prospective student to get
> involved in the git community before his application is accepted ...
> sending some patches is a good way to do that, maybe regarding one of
> the first two issues raised here? ;-)

While I agree that it is a good idea, I think the advice is about a few weeks too late for this year already.

Previous: Jens LehmannNext: Fredrik Gustafsson
Message 3 of 6 in “GSOC proposal”
  1. Fredrik GustafssonMar 24, 2011
  2. Jens LehmannMar 24, 2011
  3. Junio C HamanoMar 24, 2011
  4. Fredrik GustafssonMar 25, 2011
  5. Jens LehmannMar 25, 2011
  6. Fredrik GustafssonMar 25, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.