git
¶
| CLASS | DESCRIPTION |
|---|---|
GitProject |
|
GitProject
¶
GitProject(dir: Path)
| METHOD | DESCRIPTION |
|---|---|
clone_if_necessary |
Construct an instance, cloning given repo first if necessary. |
Source code in nava/platform/util/git.py
14 15 | |
clone_if_necessary
classmethod
¶
clone_if_necessary(repo_uri: str) -> Generator[Self, None, None]
Construct an instance, cloning given repo first if necessary.
If repo_uri is remote, it will be cloned to a temporary directory
that this removed on exit of the context.
If repo_uri is a local path, it is not deleted on exit.
Source code in nava/platform/util/git.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |