Hello Carolyn,
Thank you for reporting this problem.
That is a known issue: Stash has no API to specify the order of
registered pre-receive hooks. Please leave your comment in this issue
in Atlassian tracker to increase awareness of this problem:
https://jira.atlassian.com/browse/STASH-5291
We receive similar reports more and more often, that makes me think
they've changed the ordering of the hooks since Stash 3.0.
Unfortunately, we can do nothing until STASH-5291 is fixed.
Thank you in advance.
Regards,
Semyon Vadishev,
TMate Software,
http://subgit.com/ git-svn import & mirror
On 3 December 2014 at 02:42, Carolyn Van Slyck
<
Carolyn....@csgi.com> wrote:
> Is there a way to have the Stash pre-receive hooks executed before the sv=
n translation? For example, we use the Reject Force Push hook but it is com=
pletely circumvented by subgit. In the example below, I did a force push an=
d the remote rejected it but since subgit had already synced it to svn... t=
he rejected force push did not accomplish anything.
>
> We are using Stash 3.0.1 with SubGit 2.0.10.
>
> Thanks!
> Carolyn Van Slyck
>
> $ git push -f
> Counting objects: 62, done.
> Delta compression using up to 8 threads.
> Compressing objects: 100% (13/13), done.
> Writing objects: 100% (14/14), 1.46 KiB | 0 bytes/s, done.
> Total 14 (delta 10), reused 0 (delta 0)
> remote: Synchronizing SVN and Git...
> remote: translating SVN revisions to Git commits...
> remote: translating Git commits to SVN revisions...
> remote: translated commit 7c01649f2f37bde340fe0a39012b6418e3635683 to=
revision 24250
> remote: translated commit 0b051ceee910cec1db01544df9e7a311321f952c to=
revision 24251
> remote: ... done.
> remote: --------------------------------------------------
> remote: Force-pushing to this repository has been disabled
> remote: --------------------------------------------------
> To ssh://
g...@stash.csgsystems.com:7999/asc/cd-stats.git
> ! [remote rejected] feature-ASC-164-integration-tests -> feature-ASC-164-=
integration-tests (pre-receive hook declined)
> error: failed to push some refs to 'ssh://
g...@stash.csgsystems.com:7999/a=
sc/cd-stats.git'
> ________________________________
>
> All emails in this message string and any attachments are the confidentia=
l information of CSG Systems International, Inc. (CSG), or its affiliates a=
nd subsidiaries, and may contain privileged and/or confidential material. I=
f you are not an intended recipient, please delete it immediately and notif=
y the sender; unintended recipients are not authorized to read or otherwise=
use the information contained herein.
>
> _______________________________________________
> subgit-users mailing list
>
subgit...@subgit.com
>
http://lists.tmatesoft.com/mailman/listinfo/subgit-users