문제

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