-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import re | ||
from subprocess import DEVNULL, PIPE, SubprocessError, check_output, run | ||
|
||
from lazy_github.lib.context import LazyGithubContext | ||
from lazy_github.lib.logging import lg | ||
|
||
# Regex designed to match [email protected]:gizmo385/lazy-github.git: | ||
|
@@ -28,6 +27,8 @@ def current_local_repo_full_name(remote: str = "origin") -> str | None: | |
|
||
def current_local_repo_matches_selected_repo(remote: str = "origin") -> bool: | ||
"""Checks to see if the current repo and the repo selected in LazyGithub are the same""" | ||
from lazy_github.lib.context import LazyGithubContext | ||
|
||
if local_repo := current_local_repo_full_name(remote): | ||
return bool(LazyGithubContext.current_repo) and local_repo == LazyGithubContext.current_repo.full_name | ||
else: | ||
|