summaryrefslogtreecommitdiff
path: root/morphlib/buildcommand.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r--morphlib/buildcommand.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index a658fc55..645a336c 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -389,13 +389,13 @@ class BuildCommand(object):
source.repo = self.lrc.get_repo(repo_name)
try:
sha1 = source.sha1
- source.repo.resolve_ref(sha1)
+ source.repo.resolve_ref_to_commit(sha1)
self.app.status(msg='Not updating git repository '
'%(repo_name)s because it '
'already contains sha1 %(sha1)s',
chatty=True, repo_name=repo_name,
sha1=sha1)
- except morphlib.cachedrepo.InvalidReferenceError:
+ except morphlib.gitdir.InvalidRefError:
self.app.status(msg='Updating %(repo_name)s',
repo_name=repo_name)
source.repo.update()