Definition at line 9 of file api.py.
◆ env()
def git.api.GitApi.env |
( |
|
self | ) |
|
Add Git to PATH
Requires the infra/git and infra/tools/git CIPD packages to be installed
in the 'git' relative path.
Definition at line 10 of file api.py.
11 """Add Git to PATH
12
13 Requires the infra/git and infra/tools/git CIPD packages to be installed
14 in the 'git' relative path.
15 """
16 git_dir = self.m.path.start_dir.join('git')
17 git_bin = git_dir.join('bin')
18 return self.m.
env({
'PATH': self.m.path.pathsep.join(
19 [str(git_dir), str(git_bin), '%(PATH)s'])})
The documentation for this class was generated from the following file:
- third_party/skia/infra/bots/recipe_modules/git/api.py