diff options
-rw-r--r-- | src/buildstream/_gitsourcebase.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buildstream/_gitsourcebase.py b/src/buildstream/_gitsourcebase.py index 68eb4c2fb..120d8c72a 100644 --- a/src/buildstream/_gitsourcebase.py +++ b/src/buildstream/_gitsourcebase.py @@ -471,6 +471,8 @@ class _GitSourceBase(Source): self.mirror.tags = self._load_tags(node) def get_ref(self): + if self.mirror.ref is None: + return None return self.mirror.ref, self.mirror.tags def set_ref(self, ref, node): |