Fixed bux for debian, setup.py: pipx install
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
@@ -28,12 +28,15 @@ def init_gh_token():
|
||||
|
||||
def load_gh_token(path: Path):
|
||||
global token
|
||||
log.info(f"Loading secret github token")
|
||||
if not path.is_file():
|
||||
log.warning(f"Token load did not pass - file not found")
|
||||
return
|
||||
# load token
|
||||
token = path.read_text().strip()
|
||||
try:
|
||||
log.info(f"Loading secret github token")
|
||||
if not path.is_file():
|
||||
log.warning(f"Token load did not pass - file not found")
|
||||
return
|
||||
# load token
|
||||
token = path.read_text().strip()
|
||||
except Exception as e:
|
||||
log.warning(f"Token reading error: {e.__str__()}")
|
||||
|
||||
|
||||
def config_try_override(config_writer: GitConfigParser, section: str, option: str, value: str):
|
||||
|
||||
@@ -21,7 +21,7 @@ def clone_checkout(
|
||||
log.critical(f"Recursion limit reached! breaking")
|
||||
return False
|
||||
|
||||
repo = Repo().clone_from(source.as_posix(), to_path = target.as_posix(), progress = GitRemoteProgress(), bare = False)
|
||||
repo = Repo.clone_from(source.as_posix(), to_path = target.as_posix(), progress = GitRemoteProgress(), bare = False)
|
||||
if reference:
|
||||
log.debug(f"Finding reference: {reference}")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user