/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to refs.py

Set refs/heads/master if no ref is set yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    :param ref: Ref
71
71
    :return: A branch name
72
72
    """
73
 
    if ref == "HEAD":
 
73
    if ref in (None, "HEAD"):
74
74
        return ref
75
75
    if ref.startswith("refs/heads/"):
76
76
        return ref[len("refs/heads/"):]