agentos-project / agentos

The Python Component System (PCS) is an API and CLI for building, running, and sharing Python code. AgentOS is a set of libraries built on top of PCS that make it easy to build, run, and share agents that use Reinforcement Learning.
https://agentos.org
Apache License 2.0
13 stars 4 forks source link

Git manager optimization #381

Closed nickjalbert closed 2 years ago

nickjalbert commented 2 years ago

Small optimization to the GitManager. Because we've already cloned the repo in the _default cache, we don't actually have to pull from GitHub to clone the repo at a particular sha1. Instead, we just clone the local default repo and checkout at the hash.

nickjalbert commented 2 years ago

Ah, yeah: will remove that noisy log statement about NOT fetching

nickjalbert commented 2 years ago

Removed that print statement, and I think we're safe from double fetching for now. Build is green--merging!

nickjalbert commented 2 years ago

Thanks for the review!