Pre-receive hook declined when pushing large number of tags

Git のトラブルシューティング

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

When pushing a large number of tags, Stash rejects the push with a pre-receive hook declined error.

$ git push --tags stash
Counting objects: 14216, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (5834/5834), done.
Writing objects: 100% (13883/13883), 652.76 MiB | 5.09 MiB/s, done.
Total 13883 (delta 9575), reused 11455 (delta 7654)
 ! [remote rejected] mstr-5104 -> mstr-5104 (pre-receive hook declined)
 ! [remote rejected] mstr-5112 -> mstr-5112 (pre-receive hook declined)
 ! [remote rejected] mstr-5113 -> mstr-5113 (pre-receive hook declined)
... remote rejected continues ...
 ! [remote rejected] mstr-5113 -> mstr-5113 (pre-receive hook declined)

原因

The number of tags exceeds the buffer size available for processing hooks.

ソリューション

  • Double the buffer size by adding the following to $STASH_HOME/shared/stash-config.properties:

    stash-config.properties
    ...
    hook.callback.buffer.capacity=10485760 
    ...
  • Restart Stash after making this change

Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.