سؤال

What is the repository hook?

Hooks false. How does "hook installed" work?

I'm using Redmine 2.3.1 Redmine Git Hosting Plugin 0.6 Centos 6 Git 1.7.1

هل كانت مفيدة؟

المحلول

If you look, as an example, to the section "HowTo setup automatic refresh of repositories in Redmine on commit (Git)", you will see:

Simply add a post-receive (even on a Windows system, no extension is required) script file in the hooks sub-directory which contains the HTTP request call:

#!/bin/sh

curl "http://<redmine url>/sys/fetch_changesets?key=<your service key>" 

Don't forget to make the file(s) executable on UNIXish systems, more information about Git hooks can be found in the githooks man page.

So "repository hooks" probably references your hooks subdirectory within your .git folder of your local repo.

$GIT_DIR/hooks/* 
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top