##// END OF EJS Templates
git hook installation should be only executed for git backend
marcink -
r2992:3bc8d2e0 beta
parent child Browse files
Show More
@@ -8,16 +8,15 b' GIT support'
8 8 Git support in RhodeCode 1.3 was enabled by default. You need to have a git
9 9 client installed on the machine to make git fully work.
10 10
11 Although There are some limitations on git usage.
11 Although There is one limitation on git usage.
12 12
13 - hooks that are executed on pull/push are not *real* hooks, they are
14 just emulating the behavior, and are executed **BEFORE** action takes place.
15 - large pushes needs http server with chunked encoding support.
13 - large pushes requires a http server with chunked encoding support.
16 14
17 15 if you plan to use git you need to run RhodeCode with some
18 16 http server that supports chunked encoding which git http protocol uses,
19 17 i recommend using waitress_ or gunicorn_ (linux only) for `paste` wsgi app
20 replacement.
18 replacement. Starting from version 1.4 waitress_ is the default wsgi server
19 used in RhodeCode.
21 20
22 21 To use, simply change change the following in the .ini file::
23 22
@@ -407,6 +407,8 b' def create_repo_fork(form_data, cur_user'
407 407 src_url=safe_str(source_repo_path),
408 408 update_after_clone=update_after_clone,
409 409 bare=True)
410 # add rhodecode hook into this repo
411 ScmModel().install_git_hook(repo=r)
410 412 elif repo_type == 'hg':
411 413 r = backend(safe_str(destination_fork_path), create=True,
412 414 src_url=safe_str(source_repo_path),
@@ -414,8 +416,6 b' def create_repo_fork(form_data, cur_user'
414 416 else:
415 417 raise Exception('Unknown backend type %s' % repo_type)
416 418
417 # add rhodecode hook into this repo
418 ScmModel().install_git_hook(repo=r)
419 419 log_create_repository(fork_repo.get_dict(), created_by=cur_user.username)
420 420
421 421 action_logger(cur_user, 'user_forked_repo:%s' % fork_name,
General Comments 0
You need to be logged in to leave comments. Login now