diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2013-02-17 22:58:09 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2013-02-17 22:58:09 +0100 |
commit | 2acee31045fdfda7b571920cb961becd4faf9860 (patch) | |
tree | 39aa343314ad10c630e13a63101d57a8070ca64b /rhodecode/lib/vcs/backends/git/changeset.py | |
parent | 88e80976a7b1e9ecf29f2701bdfbdb29b24f4660 (diff) |
git executable is now configurable via .ini files
--HG--
branch : beta
Diffstat (limited to 'rhodecode/lib/vcs/backends/git/changeset.py')
-rw-r--r-- | rhodecode/lib/vcs/backends/git/changeset.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rhodecode/lib/vcs/backends/git/changeset.py b/rhodecode/lib/vcs/backends/git/changeset.py index 6407cce3..0721624c 100644 --- a/rhodecode/lib/vcs/backends/git/changeset.py +++ b/rhodecode/lib/vcs/backends/git/changeset.py @@ -2,6 +2,7 @@ import re from itertools import chain from dulwich import objects from subprocess import Popen, PIPE +import rhodecode from rhodecode.lib.vcs.conf import settings from rhodecode.lib.vcs.exceptions import RepositoryError from rhodecode.lib.vcs.exceptions import ChangesetError @@ -362,8 +363,9 @@ class GitChangeset(BaseChangeset): frmt = 'zip' else: frmt = 'tar' - cmd = 'git archive --format=%s --prefix=%s/ %s' % (frmt, prefix, - self.raw_id) + _git_path = rhodecode.CONFIG.get('git_path', 'git') + cmd = '%s archive --format=%s --prefix=%s/ %s' % (_git_path, + frmt, prefix, self.raw_id) if kind == 'tgz': cmd += ' | gzip -9' elif kind == 'tbz2': |