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

Re: Submodules

From
SVSven Verdoolaege <skimo@kotnet.org>
Date
Aug 9, 2007, 05:44 UTC
Message-ID
<20070809054419.GT999MdfPADPa@greensroom.kotnet.org>
In-Reply-To
<Pine.LNX.4.64.0708082211100.21857@racer.site>
On Wed, Aug 08, 2007 at 10:12:52PM +0100, Johannes Schindelin wrote:
Show 9 quoted lines
> This is what I did.  I cloned msysgit.git, which contains one submodule.  
> To initialise that, I did "git submodule init" and "git submodule update".  
> It went and cloned the submodule.  Fine.
> 
> Then I committed in the submodule, a well-needed fix.
> 
> If I now go to the superproject again, and say "git submodule status", it 
> will not find the newest commit, and complain that it cannot access that 
> object.

There must be something else you're not telling us. This procedure works just fine for me

bash-3.00$ git clone git://repo.or.cz/msysgit.git
Initialized empty Git repository in /home/skimo/git/msysgit/.git/
remote: Generating pack...
remote: Done counting 1857 objects.
remote: Deltifying 1857 objects...
remote:  100% (1857/1857) done
Indexing 1857 objects...
remote: Total 1857 (delta 475), reused 1857 (delta 475)
 100% (1857/1857) done
Resolving 475 deltas...
 100% (475/475) done
bash-3.00$ cd msysgit/
bash-3.00$ git submodule init
Submodule 'git' (git://repo.or.cz/git/mingw/4msysgit.git/) registered for path 'git'
bash-3.00$ git submodule update
Initialized empty Git repository in /home/skimo/git/msysgit/git/.git/
remote: Generating pack...
remote: Done counting 58074 objects.
remote: Deltifying 58074 objects...
remote:  100% (58074/58074) done
Indexing 58074 objects...
remote: Total 58074 (delta 40790), reused 55132 (delta 37853)
 100% (58074/58074) done
Resolving 40790 deltas...
 100% (40790/40790) done
Submodule path 'git': checked out 'f1e1dc5119bd9862bb4d2a975c8ca6362ea43af5'
bash-3.00$ cd git/
bash-3.00$ touch a; git add a; git commit -m 'add a'
Created commit 5318784: add a
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 a
bash-3.00$ cd ..
bash-3.00$ git submodule status
+5318784e6d492d988284a4d9aa4025496f2a3309 git (v1.5.3-rc2-690-g5318784)
skimo
Previous: Johannes SchindelinNext: Sven Verdoolaege
Message 18 of 19 in “Submodules”
  1. Dmitry KakurinAug 7, 2007
  2. Johannes SchindelinAug 7, 2007
  3. Dmitry KakurinAug 7, 2007
  4. Sven VerdoolaegeAug 8, 2007
  5. Johannes SchindelinAug 7, 2007
  6. Dmitry KakurinAug 7, 2007
  7. Johannes SchindelinAug 8, 2007
  8. Sven VerdoolaegeAug 8, 2007
  9. Junio C HamanoAug 8, 2007
  10. Johannes SchindelinAug 8, 2007
  11. Junio C HamanoAug 8, 2007
  12. Sven VerdoolaegeAug 8, 2007
  13. Junio C HamanoAug 8, 2007
  14. Johannes SchindelinAug 8, 2007
  15. Junio C HamanoAug 8, 2007
  16. Andy ParkinsAug 8, 2007
  17. Johannes SchindelinAug 8, 2007
  18. Sven VerdoolaegeAug 9, 2007
  19. Sven VerdoolaegeAug 8, 2007

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.