diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py index 8556a65ed..437f313a0 100644 --- a/git/refs/symbolic.py +++ b/git/refs/symbolic.py @@ -368,6 +368,10 @@ def log_entry(self, index): In that case, it will be faster than the ``log()`` method""" return RefLog.entry_at(RefLog.path(self), index) + def isremote(self): + """:return: (boolean) Is the reference to a remote branch""" + return self.path.startswith(self._remote_common_path_default + "/") + @classmethod def to_full_path(cls, path): """