Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
git.api.GitApi Class Reference
Inheritance diagram for git.api.GitApi:

Public Member Functions

 env (self)
 

Detailed Description

Definition at line 9 of file api.py.

Member Function Documentation

◆ env()

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.

10 def env(self):
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'])})
Definition __init__.py:1

The documentation for this class was generated from the following file: