diff options
-rw-r--r-- | buildstream/_gitsourcebase.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/buildstream/_gitsourcebase.py b/buildstream/_gitsourcebase.py index 7d07c56cb..38c844c6a 100644 --- a/buildstream/_gitsourcebase.py +++ b/buildstream/_gitsourcebase.py @@ -469,7 +469,10 @@ class _GitSourceBase(Source): self.mirror.tags = self._load_tags(node) def get_ref(self): - return self.mirror.ref, self.mirror.tags + if self.mirror.ref: + return self.mirror.ref, self.mirror.tags + else: + return None def set_ref(self, ref_data, node): if not ref_data: |