_ [debian] alioth/git

aliothにアカウント作成してからかなり空いてしまったけど、collab-maint の git にプロジェクトをインポートすることにした。 まずは Collab Maint project の手順に従って alioth にレポジトリを準備。 次にインポートするプロジェクトの準備だけど、Co-maintaining a Debian package with Git and git-buildpackage によると、既に deb パッケージがある場合は git-buildpackage パッケージの git-import-dsc を使って簡単に git レポジトリを作成できるようだ。

% git-import-dsc --pristine-tar gkrelluim_0.3.1-1.dsc
No git repository found, creating one.
Initialized empty Git repository in /home/XXXXXXXX/gkrelluim/.git/
tag upstream/0.3.1 not found, importing Upstream tarball
/usr/bin/pristine-tar: committed gkrelluim_0.3.1.orig.tar.gz.delta to branch pristine-tar
HEAD is now at dcd8793 Imported Debian patch 0.3.1-1
Everything imported under 'gkrelluim'
%

あとはできた git レポジトリを push すれば OK。

% git remote add alioth ssh://XXXXXXXX@git.debian.org/git/collab-maint/gkrelluim.git
% git push alioth master upstream pristine-tar --tags
Counting objects: 49, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (41/41), done.
Writing objects: 100% (49/49), 128.17 KiB, done.
Total 49 (delta 1), reused 0 (delta 0)
To ssh://XXXXXXXX@git.debian.org/git/collab-maint/gkrelluim.git
 * [new branch]      master -> master
 * [new branch]      upstream -> upstream
 * [new branch]      pristine-tar -> pristine-tar
 * [new tag]         debian/0.3.1-1 -> debian/0.3.1-1
 * [new tag]         upstream/0.3.1 -> upstream/0.3.1
%