You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the capability for the watcher's git archive server to optionally filter out content.
Then when the coordinator is asking for the "talks" repo, it can skip the 30+ MB of binaries.
We already do this with the .gitattributes file (see https://golang.org/cl/11050 for #11199) but that's a hack. We should revert that once the coordinator knows how to ask the watcher to filter stuff.
bradfitz
changed the title
x/build: smarter git exporter in the watcher
x/build/cmd/gitmirror: smarter git exporter in the watcher
Feb 11, 2017
bradfitz
changed the title
x/build/cmd/gitmirror: smarter git exporter in the watcher
x/build/cmd/gitmirror: smarter git exporter filtering
Feb 17, 2017
This might be a little tricky. If I am reading correctly the only way to exclude files from git archive is via a .gitattributes file. We could write this file based on the "ignore" values of the incoming request, but if I am reading correctly git archive hardcodes the .gitattributes filename, so we can only have one incoming request served at a time and that request has to clobber the .gitattributes file - you can't do like git archive --with-attributes=/tmp/foo/.gitattributes.
Another option would be to write the gzip file, open it with a gzip.Reader, and strip files out that we want to exclude before sending it over the wire.
Add the capability for the watcher's git archive server to optionally filter out content.
Then when the coordinator is asking for the "talks" repo, it can skip the 30+ MB of binaries.
We already do this with the .gitattributes file (see https://golang.org/cl/11050 for #11199) but that's a hack. We should revert that once the coordinator knows how to ask the watcher to filter stuff.
/cc @adg @minux
The text was updated successfully, but these errors were encountered: