Show More
@@ -5,11 +5,13 b' GIT support' | |||
|
5 | 5 | =========== |
|
6 | 6 | |
|
7 | 7 | |
|
8 | Git support in RhodeCode 1.3 was enabled by default. | |
|
8 | Git support in RhodeCode 1.3 was enabled by default. You need to have a git | |
|
9 | client installed on the machine to make git fully work. | |
|
10 | ||
|
9 | 11 | Although There are some limitations on git usage. |
|
10 | 12 | |
|
11 | - No hooks are runned for git push/pull actions. | |
|
12 | - logs in action journals don't have git operations | |
|
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. | |
|
13 | 15 | - large pushes needs http server with chunked encoding support. |
|
14 | 16 | |
|
15 | 17 | if you plan to use git you need to run RhodeCode with some |
@@ -17,14 +19,19 b' http server that supports chunked encodi' | |||
|
17 | 19 | i recommend using waitress_ or gunicorn_ (linux only) for `paste` wsgi app |
|
18 | 20 | replacement. |
|
19 | 21 | |
|
20 |
To use |
|
|
22 | To use, simply change change the following in the .ini file:: | |
|
21 | 23 | |
|
22 | 24 | use = egg:Paste#http |
|
23 | 25 | |
|
24 |
|
|
|
26 | to:: | |
|
25 | 27 | |
|
26 | 28 | use = egg:waitress#main |
|
27 | 29 | |
|
30 | or:: | |
|
31 | ||
|
32 | use = egg:gunicorn#main | |
|
33 | ||
|
34 | ||
|
28 | 35 | And comment out bellow options:: |
|
29 | 36 | |
|
30 | 37 | threadpool_workers = |
@@ -95,14 +95,19 b' class GitRepository(BaseRepository):' | |||
|
95 | 95 | cmd = [cmd] |
|
96 | 96 | _str_cmd = True |
|
97 | 97 | |
|
98 | cmd = ['GIT_CONFIG_NOGLOBAL=1', 'git'] + _copts + cmd | |
|
98 | gitenv = os.environ | |
|
99 | gitenv['GIT_CONFIG_NOGLOBAL'] = '1' | |
|
100 | ||
|
101 | cmd = ['git'] + _copts + cmd | |
|
99 | 102 | if _str_cmd: |
|
100 | 103 | cmd = ' '.join(cmd) |
|
101 | 104 | try: |
|
102 | 105 | opts = dict( |
|
103 | 106 | shell=isinstance(cmd, basestring), |
|
104 | 107 | stdout=PIPE, |
|
105 |
stderr=PIPE |
|
|
108 | stderr=PIPE, | |
|
109 | env=gitenv, | |
|
110 | ) | |
|
106 | 111 | if os.path.isdir(self.path): |
|
107 | 112 | opts['cwd'] = self.path |
|
108 | 113 | p = Popen(cmd, **opts) |
General Comments 0
You need to be logged in to leave comments.
Login now