Skip to content

Commit

Permalink
Get abspath of publish_dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsrabin committed Mar 1, 2025
1 parent cd1167a commit 8bb3688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cupid/git_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, publish_dir, version_name, publish_url=None):
RuntimeError: If the publish directory is not clean.
"""
self.version_name = version_name
self.publish_dir = os.path.realpath(publish_dir)
self.publish_dir = os.path.abspath(os.path.realpath(publish_dir))
self.check_pub_dir_clean()

if publish_url is None:
Expand Down Expand Up @@ -122,7 +122,7 @@ def get_publish_url(self):

cmd = "rev-parse --show-toplevel"
publish_dir_repo_top = self.run_git_cmd(cmd, cwd=self.publish_dir)[0]
subdirs = str(os.path.realpath(self.publish_dir)).replace(
subdirs = self.publish_dir.replace(
publish_dir_repo_top,
"",
)
Expand Down

0 comments on commit 8bb3688

Please sign in to comment.