Skip to content

Commit

Permalink
Moved GEF_DEFAULT_BRANCH to the top of the script so the value is k…
Browse files Browse the repository at this point in the history
…now when `update_gef` is taken
  • Loading branch information
hugsy committed Aug 9, 2022
1 parent 2e0115d commit 2830670
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gef.py
Expand Up @@ -88,6 +88,8 @@
Union)
from urllib.request import urlopen

GEF_DEFAULT_BRANCH = "main"
GEF_EXTRAS_DEFAULT_BRANCH = "main"

def http_get(url: str) -> Optional[bytes]:
"""Basic HTTP wrapper for GET request. Return the body of the page if HTTP code is OK,
Expand Down Expand Up @@ -156,9 +158,6 @@ def update_gef(argv: List[str]) -> int:

PATTERN_LIBC_VERSION = re.compile(rb"glibc (\d+)\.(\d+)")

GEF_DEFAULT_BRANCH = "main"
GEF_EXTRAS_DEFAULT_BRANCH = "main"

gef : "Gef"
__registered_commands__ : Set[Type["GenericCommand"]] = set()
__registered_functions__ : Set[Type["GenericFunction"]] = set()
Expand Down

0 comments on commit 2830670

Please sign in to comment.