Skip to content

Commit

Permalink
Merge pull request #104 from vpodzime/master-submodule_update
Browse files Browse the repository at this point in the history
Do 'git submodule update --init' when checking out to a branch
  • Loading branch information
vpodzime authored Jun 5, 2024
2 parents b095282 + 6cfade6 commit ad09eec
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 ad09eec

Please sign in to comment.