Cause:

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

Symptoms:

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

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

How do I resolve this?

  1. Double the Stash buffer size by stash-config.properties and hook.callback.buffer.capacity=10485760
  2. Restart Stash after completing this

Have questions? Email us support@assembla.com

Did this answer your question?