문제

I'm trying to delete a Gitolite repository with a trigger (hook) since Gitolite forces this cleanup on the admin.

The $GL_REPO variable is necessary, but would I know the repo is being deleted ?

Thank you.

도움이 되었습니까?

해결책

You don't need a hook.
You can use commands (with the latest 3.x gitolite).

Those commands include the command 'D'

ssh git@host D unlock repo
ssh git@host D rm repo

And your repo is gone.

Note that (commit b9bbb7):

you can completely disable the 'rm' command by setting an rc variable
(meaning in the .gitolite.rc file)

#   called D_DISABLE_RM to "1". 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top