Git clone not pulling latest submodules by default

194 views
Skip to first unread message

cappelaere

unread,
May 5, 2011, 12:45:48 PM5/5/11
to Express
This may be an obvious one for some but you do not get the latest
submodules when you git clone express.
example:
>git clone https://github.com/visionmedia/express.git
>cd express
>git submodule init
>git submodule update
>git submodule status

af32d828a3075894ae40a8d79edfde30e56bf3cb support/connect (1.3.0-8-
gaf32d82)
e861cc85d66e13dbc3a671c1ac72af988de20100 support/connect-form (0.2.1)
499c4815a5fd39905aef81fbe8699b557c39579b support/ejs (0.3.1)
855e0dea070e0943dadb0b89ce8daa598829dee0 support/expresso (0.7.4-1-
g855e0de)
5d98e9c75c8642c1a3f39d1741b839cc44aa2be7 support/formidable
(v0.9.11-2-g5d98e9c)
55bb6fdc79085d8091ab6db3f8b716686fcb1875 support/haml (0.5.1)
bdeb8b9fb403123387e020532b401cf5ce8b6604 support/jade (0.10.4-5-
gbdeb8b9)
ade33a43be22637a9876a80650035c4a0d5092d2 support/mime (ade33a4)
2b9796e54e4fd689d795b9857862055cec59871d support/qs (0.0.3-1-
g2b9796e)
607f8734e80774a098f084a6ef66934787b7f33f support/should (0.0.3-6-
g607f873)

I was under the assumption that I would be getting the latest
submodules as the github gui may show.

You need to go into each submodule and git checkout master. There
ought to be a better way of doing this... right?
This does fix the problem with the plus sign in x-www-form-urlencoded.
Thanks TJ.
Pat.

vision media [ Tj Holowaychuk ]

unread,
May 5, 2011, 12:59:37 PM5/5/11
to expre...@googlegroups.com
hmm you should be able to $ git submodule update --init


--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.




--
Tj Holowaychuk
Vision Media
President & Creative Lead

Pat Cappelaere

unread,
May 5, 2011, 1:09:38 PM5/5/11
to expre...@googlegroups.com
That's what I was initially doing but was getting the same results.
I am wondering if the submodules version numbers are not hardcoded in the project…?
Pat.

TJ Holowaychuk

unread,
May 5, 2011, 1:11:18 PM5/5/11
to expre...@googlegroups.com
no version numbers just the shas but they should be fine unless i accidentally have them pointing to my private url or something

-- 
TJ Holowaychuk

Michael Angerman

unread,
May 17, 2011, 9:58:41 PM5/17/11
to expre...@googlegroups.com
git submodule update --init

works for me !
michael

TJ Holowaychuk

unread,
May 17, 2011, 11:47:31 PM5/17/11
to expre...@googlegroups.com
slowly moving my projects to utilize npm's devDependencies. not 100% happy on dev deps having anything to do with a package manager, but it's a bit annoying to track down modules on github

-- 
TJ Holowaychuk
Reply all
Reply to author
Forward
0 new messages