emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git mirror?


From: Andreas Schwab
Subject: Re: git mirror?
Date: Wed, 30 Dec 2009 14:10:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

Anyone who wants to set up a git mirror can use something like this,
suitably adapted:

test last-run -nt last-run-ready || touch last-run
rsync -av --del bzr.sv.gnu.org:/srv/bzr/emacs/ emacs.bzr/
cd emacs.bzr
for b in *; do
  test $b/.bzr/branch/last-revision -ot ../last-run && continue
  echo $b
  bzr fast-export --marks=../bzr-marks $(test $b != trunk && echo -b $b) $b |
  (cd ../emacs.git; git fast-import --export-marks=../git-marks 
--import-marks=../git-marks)
done
cd ../emacs.git
git push --mirror ssh://repo.or.cz/srv/git/emacs.git
touch ../last-run-ready

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]