| 1 | |
| 2 | |
| 3 | @@ -22,18 +22,7 @@
|
| 4 | if not os.path.exists(repository):
|
| 5 | raise IOError('path does not exist')
|
| 6 |
|
| 7 | - git = 'git'
|
| 8 | - if is_windows():
|
| 9 | - git = 'git.bat'
|
| 10 | - version = subprocess.check_output([
|
| 11 | - git,
|
| 12 | - '-C',
|
| 13 | - repository,
|
| 14 | - 'rev-parse',
|
| 15 | - 'HEAD',
|
| 16 | - ])
|
| 17 | -
|
| 18 | - return str(version.strip(), 'utf-8')
|
| 19 | + return '0' * 41
|
| 20 |
|
| 21 |
|
| 22 | def main():
|
| 23 | |
| 24 | |
| 25 | @@ -286,18 +286,7 @@
|
| 26 | if not os.path.exists(repository):
|
| 27 | raise IOError('path does not exist')
|
| 28 |
|
| 29 | - git = 'git'
|
| 30 | - if sys.platform.startswith(('cygwin', 'win')):
|
| 31 | - git = 'git.bat'
|
| 32 | - version = subprocess.check_output([
|
| 33 | - git,
|
| 34 | - '-C',
|
| 35 | - repository,
|
| 36 | - 'rev-parse',
|
| 37 | - 'HEAD',
|
| 38 | - ])
|
| 39 | -
|
| 40 | - return str(version.strip(), 'utf-8')
|
| 41 | + return '0' * 41
|
| 42 |
|
| 43 |
|
| 44 | def setup_git_versions():
|