質問

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