From cbc117355a6f549a14cae57dac43fa6f432c1849 Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Fri, 14 Mar 2014 13:01:45 +0000 Subject: Make existing morph commands use git-fat When cloning a repository, the files stored using git-fat need to be pulled. This situation occurs in `morph branch`, `morph edit`, and `morph checkout`. --- morphlib/gitdir.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'morphlib/gitdir.py') diff --git a/morphlib/gitdir.py b/morphlib/gitdir.py index 15c0ee9f..06fcba6f 100644 --- a/morphlib/gitdir.py +++ b/morphlib/gitdir.py @@ -362,6 +362,9 @@ class GitDirectory(object): def checkout(self, branch_name): # pragma: no cover '''Check out a git branch.''' self._runcmd(['git', 'checkout', branch_name]) + if self.has_fat(): + self.fat_init() + self.fat_pull() def branch(self, new_branch_name, base_ref): # pragma: no cover '''Create a git branch based on an existing ref. -- cgit v1.2.1