Question: Convert source tarball to GIT repository
pancha at mail.nnov.ru
Mon Oct 23 07:45:53 CDT 2006
Mike McCormack wrote, on 10/24/06 00:01 MSK:
> Matthew Kehrer wrote:
>> So what commands are needed to just update it?
>> I understand how to set it up from what you have said.
> So, assuming you created a Git tree from Wine tarball as follows:
> tar jxvf wine-0.9.23.tar.bz2 | sed s/^wine-0.9.23\\/// > list
> cd wine-0.9.23
> git init-db
> git update-index --add `cat ../list`
> git commit -m "Import of wine-0.9.23"
> And the initial tree's SHA-1 ID matches:
> Committing initial tree c8369ac44e507d96073ca57e9a0a1e77f5ec9511
> Download my update script from http://mandoo.dyndns.org/update.sh
> then change into your Wine 0.9.23 Git directory and run the script. ie.
> cd wine-0.9.23
> sh update.sh
> This should download the latest commits from WineHQ.org via my server.
> The output is something like:
> mike at black:~/wine-0.9.23$ sh update.sh
> Last tree is 5e4b428f32db20582941331a37f1cdb9f462da77
> Now querying for a matching commit...
> Matching commit is 2cb378d498b7525eb34bd163fcc77d00fe595335
> Now downloading patches...
> Things to remember:
> * You shouldn't commit to this Git tree... clone it first and commit to
> the clone, or branch and switch back to the original branch for updates.
> If you commit to the branch that updates come to, the update script
> won't work.
> * It requires an equivalent hacked up gitweb.cgi, which is only on the
> website pointed to by the script at the moment.
> * This is hacked together in a few hours. To get something more
> reliable and that might be acceptable to the Git project will take
> somewhat longer.
> Anyway, I'd appreciate any testing anybody is willing to give the
> script, and any feedback.
In two words: it works! The script took about 5 Mb of traffic to update
from 0.9.23 to the current head (not too much but binary 0.9.22-0.9.23
delta is about 500 kb). Using "curl --compressed" when possible (and
configuring your server to support compressed documents) should decrease
traffic volume significantly.
More information about the wine-devel