Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9287741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:45:00+00:00 2026-06-18T19:45:00+00:00

Hi im trying to create a pre-commit hook so what when a user commits

  • 0

Hi im trying to create a pre-commit hook so what when a user commits code, it is checked for a jira association.

I only want it to apply to a specific project, how do i do this?

I have a structure like: (no hooks folder in the base or any projects)

//subversion.xxxx.net/svn/dev
->/com/text/project1
->/com/text2/project2

1) I want my pre-commit hook to apply to project1 only, where do I place the script? is it in /com/text/project1/hooks?

or am i wrong and i need to create folder in //subversion.xxxx.net/svn/dev/hooks?

2) for global project commits do i place it //subversion.xxxx.net/svn/dev/hooks?

Any help woudl be good, i just dont want to add it, as everyone is suing it at the moment.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T19:45:01+00:00Added an answer on June 18, 2026 at 7:45 pm

    First (and I realize this isn’t the thrust of your question), you want to look into the JIRA Commit Acceptance plugin. It does exactly what you want, including the pre-commit hoook – no need to reinvent the wheel.

    To your question, I like where you’re going – you definitely want your hooks in version control. You don’t need the hook stored in the repo that uses it. Since it’s only used on the server, there is no need for the team to have to check it out.

    I’d recommend you make a new repository for hooks (called hooks). I do this and have a checkout of this repo on the server, then SUBVERSION_REPOSITORY_HOME/hooks/pre-commit.sh calls the scripts in my checkout of hooks. It’s nice, as a change can be applied to all repos simply by checking it in and then doing an svn up on the server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a pre-commit hook for git that edits the comments
I'm trying to create an svn pre-commit hook, but can't get my regular expression
I am trying to create a subversion pre-lock hook on windows. However I have
I'm trying to create a Mercurial hook that runs when the commits are being
I am trying to create a simple blog that has code inclosed in <pre>
I'm trying to pre-populate create defect popup and I'm not clear on what key/values
I'm trying to create mobile based chat app. Basically, I want users to connect
I'm trying to create a shell like environment, where a user is presented with
I am trying to create documentation automatically from the code for all the URLs
I wrote the following pre-commit script for SVN to validate that a user has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.