diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-03-14 13:01:45 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-03-20 13:54:21 +0000 |
commit | cbc117355a6f549a14cae57dac43fa6f432c1849 (patch) | |
tree | 714fcf6af5023e4ed77ec75907e5edfdd08e7238 /morphlib/gitdir.py | |
parent | 73e22af6a9c83f9e9e1d79f4018f4562bf5ae1b2 (diff) | |
download | morph-cbc117355a6f549a14cae57dac43fa6f432c1849.tar.gz |
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`.
Diffstat (limited to 'morphlib/gitdir.py')
-rw-r--r-- | morphlib/gitdir.py | 3 |
1 files changed, 3 insertions, 0 deletions
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. |