Mercurial > kallithea
comparison rhodecode/lib/vcs/backends/git/changeset.py @ 3376:e67b2ef07a8e beta
git executable is now configurable via .ini files
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 17 Feb 2013 22:58:09 +0100 |
parents | 6d599a3c0d67 |
children | fe2bb88bf7ac |
comparison
equal
deleted
inserted
replaced
3375:7000fc4aa569 | 3376:e67b2ef07a8e |
---|---|
1 import re | 1 import re |
2 from itertools import chain | 2 from itertools import chain |
3 from dulwich import objects | 3 from dulwich import objects |
4 from subprocess import Popen, PIPE | 4 from subprocess import Popen, PIPE |
5 import rhodecode | |
5 from rhodecode.lib.vcs.conf import settings | 6 from rhodecode.lib.vcs.conf import settings |
6 from rhodecode.lib.vcs.exceptions import RepositoryError | 7 from rhodecode.lib.vcs.exceptions import RepositoryError |
7 from rhodecode.lib.vcs.exceptions import ChangesetError | 8 from rhodecode.lib.vcs.exceptions import ChangesetError |
8 from rhodecode.lib.vcs.exceptions import NodeDoesNotExistError | 9 from rhodecode.lib.vcs.exceptions import NodeDoesNotExistError |
9 from rhodecode.lib.vcs.exceptions import VCSError | 10 from rhodecode.lib.vcs.exceptions import VCSError |
360 | 361 |
361 if kind == 'zip': | 362 if kind == 'zip': |
362 frmt = 'zip' | 363 frmt = 'zip' |
363 else: | 364 else: |
364 frmt = 'tar' | 365 frmt = 'tar' |
365 cmd = 'git archive --format=%s --prefix=%s/ %s' % (frmt, prefix, | 366 _git_path = rhodecode.CONFIG.get('git_path', 'git') |
366 self.raw_id) | 367 cmd = '%s archive --format=%s --prefix=%s/ %s' % (_git_path, |
368 frmt, prefix, self.raw_id) | |
367 if kind == 'tgz': | 369 if kind == 'tgz': |
368 cmd += ' | gzip -9' | 370 cmd += ' | gzip -9' |
369 elif kind == 'tbz2': | 371 elif kind == 'tbz2': |
370 cmd += ' | bzip2 -9' | 372 cmd += ' | bzip2 -9' |
371 | 373 |