Until a better / mor elegant way is figured out to deal with git "partial mirroring" (I'll talk to Chrome-infra), I'll use git-equivalent of 'svn export' in my update.sh script.
https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export
git archive --format=tar \
--remote=ssh://remote_server/remote_repository master | tar -xf -
To export particular path inside the repo add as many paths as you wish as last argument to git, e.g.:
git archive --format=tar \
--remote=ssh://remote_server/remote_repository master path1/ path2/ | tar -xv
I'll also file an upstream bug to exclude .gitattributes, .gitignore from archiving.
github does not support 'git archive' protocol. And, the method in comment 5 does not allow downloading icu4c only. (the whole thing has to be downloaded).
However, github supports 'svn' (viewing git repos as svn repo). See https://stackoverflow.com/questions/9609835/git-export-from-github-remote-repository .
So, I can just change the svn url in my update script to point to a new location.
Comment 1 by ftang@chromium.org
, Oct 8