refs/notes/*
すべての git notes refs ( ) をある中央の git リポジトリから別のリポジトリに転送したいと考えています。
git 中央サーバーA
と を想定し、git ノートを からにB
レプリケートしたいと考えています。 A
B
次のようなオプションを使用しようとしました:
git push remoteB refs/notes/*:refs/notes/*; git push --mirror
(このオプションは機能しますが、 に存在しないブランチなどの追加の参照を削除していますA
);git push --all
(このオプションは git ノートの同期を維持しませんが、同期の維持にはうまく機能しますrefs/heads
) コミット後の git フックで。
[git@hdqpdqaapp5 modeln50.git]$ GIT_TRACE=1 git push
source +refs/notes/*:refs/notes/*
trace: built-in: git 'push' 'source' '+refs/notes/*:refs/notes/*'
trace: run_command: 'ssh' '-p' '8081' 'hdqpdsource1.modeln.com' 'git-receive-pack '\''/modeln56.git'\'''
リモート名は正しく取得されていますが、プロジェクト名が間違っています ( modeln56
)。また、コマンドは何も出力されずにハングします。