Skip to content

Commit

Permalink
Do 'git submodule update --init' when checking out to a branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vpodzime committed Jun 5, 2024
1 parent b095282 commit 6cfade6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tom/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def checkout(self, branch=None, tag=None, remote="upstream", new=False):
self.run_command("checkout", branch)
# ensure we're on the tip of ref
self.run_command("reset", "--hard", "FETCH_HEAD")
self.run_command("submodule", "update", "--init")

def get_file(self, path):
"""Returns contents of a file as a single string"""
Expand Down

0 comments on commit 6cfade6

Please sign in to comment.