diff options
Diffstat (limited to 'morphlib/cachedrepo.py')
-rw-r--r-- | morphlib/cachedrepo.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/morphlib/cachedrepo.py b/morphlib/cachedrepo.py index 2fc7cfa5..30e08ad9 100644 --- a/morphlib/cachedrepo.py +++ b/morphlib/cachedrepo.py @@ -297,12 +297,8 @@ class CachedRepo(object): raise CheckoutError(self, ref, target_dir) def _update(self): # pragma: no cover - try: - morphlib.git.gitcmd(self._runcmd, 'remote', 'update', - 'origin', '--prune') - except cliapp.AppException, ae: - morphlib.git.gitcmd(self._runcmd, 'remote', 'prune', 'origin') - morphlib.git.gitcmd(self._runcmd, 'remote', 'update', 'origin') + morphlib.git.gitcmd(self._runcmd, 'remote', 'update', + 'origin', '--prune') def __str__(self): # pragma: no cover return self.url |