-
- Downloads
Project 'gitlab-org/manage/foundations/team-tasks' was moved to 'gitlab-org/foundations/team-tasks'. Please update any links and bookmarks that may still have the old path.
Refactor setup_remotes() to remove --remote overriding logic
This change simplifies the responsibilities of `setup_remotes()` by extracting "getting the default remotes" logic to its own function and moving "--remote" related logic to _load(). The latter, especially, helps to remove the need of passing the "remote_url" string and "can_push?" boolean to `setup_remotes()`.
Showing
- buildstream/_artifactcache/artifactcache.py 23 additions, 18 deletionsbuildstream/_artifactcache/artifactcache.py
- buildstream/_stream.py 14 additions, 7 deletionsbuildstream/_stream.py
- tests/artifactcache/pull.py 6 additions, 3 deletionstests/artifactcache/pull.py
- tests/artifactcache/push.py 8 additions, 8 deletionstests/artifactcache/push.py
Loading
Please register or sign in to comment