[subgit-users-2014] pre-receive hooks executed after svn translation?

157 views
Skip to first unread message

Carolyn Van Slyck

unread,
Jun 3, 2016, 3:18:15 PM6/3/16
to subgit...@googlegroups.com
Is there a way to have the Stash pre-receive hooks executed before the svn =
translation? For example, we use the Reject Force Push hook but it is compl=
etely circumvented by subgit. In the example below, I did a force push and =
the remote rejected it but since subgit had already synced it to svn... the=
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 r=
evision 24250
remote: translated commit 0b051ceee910cec1db01544df9e7a311321f952c to r=
evision 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-in=
tegration-tests (pre-receive hook declined)
error: failed to push some refs to 'ssh://g...@stash.csgsystems.com:7999/asc=
/cd-stats.git'
________________________________

All emails in this message string and any attachments are the confidential =
information of CSG Systems International, Inc. (CSG), or its affiliates and=
subsidiaries, and may contain privileged and/or confidential material. If =
you are not an intended recipient, please delete it immediately and notify =
the sender; unintended recipients are not authorized to read or otherwise u=
se the information contained herein.

Semyon Vadishev

unread,
Jun 3, 2016, 3:19:34 PM6/3/16
to subgit...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages