◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
33 changes: 11 additions & 22 deletions git/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,24 @@

"""Module implementing a remote object allowing easy access to git remotes."""

import logging
import re

from git.cmd import handle_process_output, Git
from git.compat import defenc, force_text
from git.exc import GitCommandError
from git.util import (
LazyMixin,
IterableObj,
IterableList,
RemoteProgress,
CallableRemoteProgress,
)
from git.util import (
join_path,
)

from git.config import (
GitConfigParser,
SectionConstraint,
cp,
)
from git.refs import Head, Reference, RemoteReference, SymbolicReference, TagReference

# typing-------------------------------------------------------

from typing import (
Expand Down Expand Up @@ -345,18 +339,13 @@ class FetchInfo(IterableObj):
@classmethod
def refresh(cls) -> Literal[True]:
"""This gets called by the refresh function (see the top level __init__)."""
# clear the old values in _flag_map
try:
del cls._flag_map["t"]
except KeyError:
pass

try:
del cls._flag_map["-"]
except KeyError:
pass

# set the value given the git version
if Git().version_info[:2] >= (2, 10):
cls._flag_map["t"] = cls.TAG_UPDATE
else:
Expand Down
Toggle all file notes Toggle all file annotations