projects/aports·blob master · refs

44 lines · 931 B

1--- a/engine/src/flutter/build/git_revision.py
2+++ b/engine/src/flutter/build/git_revision.py
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--- ./engine/src/flutter/tools/gn.orig
24+++ ./engine/src/flutter/tools/gn
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():