Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 committed May 27, 2024
1 parent 9996b99 commit eb9039f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions make_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ def get_git_repo_info():
# Get the remote URL of the Git repository
remote_url = subprocess.check_output(['git', 'config', '--get', 'remote.origin.url']).decode('utf-8').strip()

print(f"Remote URL: {remote_url}")

# Extract the repository owner and name from the remote URL
repo_owner, repo_name = remote_url.split('/')[-2:]
repo_name = repo_name.rstrip('.git')
repo_owner = "theripper93"
repo_name = "wall-height"

print(f"Repo name: {repo_name}")

print(f"Repo owner: {repo_owner}, repo name: {repo_name}")

return repo_owner, repo_name
except subprocess.CalledProcessError:
Expand Down

0 comments on commit eb9039f

Please sign in to comment.