Skip to content

Commit 8c85f0c

Browse files
committed
docs(CHANGES): Note passing of remotes
1 parent 41b024f commit 8c85f0c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

CHANGES

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,33 @@ $ pip install --user --upgrade --pre libvcs
1111

1212
## current - unrelased
1313

14+
### What's new
15+
16+
- `GitRepo` now accepts remotes in `__init__`
17+
18+
```python
19+
repo = GitRepo(
20+
url="https://github.com/vcs-python/libvcs",
21+
repo_dir=checkout,
22+
remotes={
23+
'gitlab': 'https://gitlab.com/vcs-python/libvcs',
24+
}
25+
)
26+
```
27+
28+
```python
29+
repo = GitRepo(
30+
url="https://github.com/vcs-python/libvcs",
31+
repo_dir=checkout,
32+
remotes={
33+
'gitlab': {
34+
'fetch': 'https://gitlab.com/vcs-python/libvcs',
35+
'push': 'https://gitlab.com/vcs-python/libvcs',
36+
},
37+
}
38+
)
39+
```
40+
1441
### Compatibility
1542

1643
- Python 3.7 and 3.8 dropped (#308)

0 commit comments

Comments
 (0)