Commit 69c5ccde authored by Valentin David's avatar Valentin David Committed by Valentin David
Browse files

buildstream/plugins/sources/git.py: Fix clone side effect in getting fetchers

We now delay refreshing submodules until we have a clone, that is after
we have fetched the main fetcher.

Fixes #537
parent 9d074d7f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -414,8 +414,10 @@ class GitSource(Source):
                    mirror.stage(directory)

    def get_source_fetchers(self):
        yield self.mirror
        self.refresh_submodules()
        return [self.mirror] + self.submodules
        for submodule in self.submodules:
            yield submodule

    ###########################################################
    #                     Local Functions                     #