mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-28 23:07:11 +00:00
**Description: a description of the change** In this pull request, GitLoader has been updated to handle multiple load calls, provided the same repository is being cloned. Previously, calling `load` multiple times would raise an error if a clone URL was provided. Additionally, a check has been added to raise a ValueError when attempting to clone a different repository into an existing path. New tests have also been introduced to verify the correct behavior of the GitLoader class when `load` is called multiple times. Lastly, the GitPython package, a dependency for the GitLoader class, has been added to the project dependencies (pyproject.toml and poetry.lock). **Issue: the issue # it fixes (if applicable)** None **Dependencies: any dependencies required for this change** GitPython **Tag maintainer: for a quicker response, tag the relevant maintainer (see below)** - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev