Skip to content

Commit

Permalink
use previous working version of get_github_username_from_remote
Browse files Browse the repository at this point in the history
  • Loading branch information
DevlinRocha committed Jan 25, 2025
1 parent d93e0cf commit f5cbbe0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/create_lilypad_module/scaffold.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ def get_github_username_from_remote(repo_path: Path) -> str:
)

os.chdir(repo_path)

remote_url = subprocess.check_output(
["git", "remote", "get-url", "origin"], text=True, stderr=subprocess.DEVNULL
).strip()
remote_url = (
subprocess.check_output(
["git", "remote", "get-url", "origin"], stderr=subprocess.DEVNULL
)
.decode()
.strip()
)

match = re.search(r"github\.com[:/](.*?)/", remote_url)
if match:
Expand Down

0 comments on commit f5cbbe0

Please sign in to comment.