Show More
@@ -28,6 +28,7 b' import logging' | |||||
28 | import urlparse |
|
28 | import urlparse | |
29 |
|
29 | |||
30 | import rhodecode |
|
30 | import rhodecode | |
|
31 | from rhodecode.lib import utils | |||
31 | from rhodecode.lib import utils2 |
|
32 | from rhodecode.lib import utils2 | |
32 | from rhodecode.lib.middleware import simplevcs |
|
33 | from rhodecode.lib.middleware import simplevcs | |
33 |
|
34 | |||
@@ -145,9 +146,10 b' class SimpleGit(simplevcs.SimpleVCS):' | |||||
145 | extras['git_update_server_info'] = utils2.str2bool( |
|
146 | extras['git_update_server_info'] = utils2.str2bool( | |
146 | rhodecode.CONFIG.get('git_update_server_info')) |
|
147 | rhodecode.CONFIG.get('git_update_server_info')) | |
147 |
|
148 | |||
148 | # TODO(marcink): controll this via DB settings, store and enabled-per |
|
149 | config = utils.make_db_config(repo=repo_name) | |
149 | # repo settings |
|
150 | custom_store = config.get('vcs_git_lfs', 'store_location') | |
150 |
|
151 | |||
151 |
extras['git_lfs_enabled'] = |
|
152 | extras['git_lfs_enabled'] = utils2.str2bool( | |
152 | extras['git_lfs_store_path'] = default_lfs_store() |
|
153 | config.get('vcs_git_lfs', 'enabled')) | |
|
154 | extras['git_lfs_store_path'] = custom_store or default_lfs_store() | |||
153 | return extras |
|
155 | return extras |
General Comments 0
You need to be logged in to leave comments.
Login now