Upgrading to Git 1.5.4.1Edit
These notes were made while upgrading to Git 1.5.4.1.
Local upgrade
These notes were made performing the upgrade on Mac OS X 10.5.1 Leopard, using a local clone of the central Git repository.
# get new stuff from upstream
git fetch
# check the signature on the tag
git tag -v v1.5.4.1
# switching working tree to v1.5.4.1
git checkout v1.5.4.1
# clean up any cruft that might be lying around
make clean
# build, run tests, and generate docs
make prefix=/usr/local test doc
# install
sudo make prefix=/usr/local install install-doc
In order to build the docs you need the documentation toolchain in place; see "Setting up the Git documentation build chain on Mac OS X Leopard".
Remote upgrade
Originally I didn't do an upgrade on the remote server because there weren't really any relevant fixes in the new release, and I'll be migrating machines anyway at the end of the month.
However, I discovered a big in gitweb and so had to do some testing. So I created a clone of the central Git repository and after testing installed 1.5.4.1.
Building
# clone
git clone git://git.kernel.org/pub/scm/git/git.git git.git
cd git.git
# checkout HEAD of maint (currently 1.5.4.1)
git checkout origin/maint
# build and test
nice make prefix=/usr/local test
# install
sudo make prefix=/usr/local install
# get man pages
cd ..
wget http://www.kernel.org/pub/software/scm/git/git-manpages-1.5.4.1.tar.bz2 \
http://www.kernel.org/pub/software/scm/git/git-manpages-1.5.4.1.tar.bz2.sign
# verify
gpg --verify git-manpages-1.5.4.1.tar.bz2.sign git-manpages-1.5.4.1.tar.bz2
# install
sudo tar xjv -C /usr/local/man -f git-manpages-1.5.4.1.tar.bz2
Updating gitweb
# from top-level of Git source tree
make clean
make prefix=/usr/local \
GITWEB_PROJECTROOT=/pub/git/path_to_public_repos \
GITWEB_LIST=/pub/git/conf/gitweb-projects \
GITWEB_STRICT_EXPORT=1 \
GITWEB_CSS="/gitweb.css" \
GITWEB_LOGO="/git-logo.png" \
GITWEB_FAVICON="/git-favicon.png" \
GITWEB_CONFIG="/pub/git/conf/gitweb.conf" \
gitweb/gitweb.cgi
sudo -u git cp gitweb/gitweb.{cgi,css} \
gitweb/git-*.png \
/pub/git/public_html