WIP: buildstream/_gitsourcebase.py: Fix return of get_ref() when no ref is available
Description
Fixes the return value of GitSource.get_ref() to return None when is no ref set.
This merge request, when approved, will close: Fixes #1020 (closed).
Edited by Laurence Urhegyi