Skip to content

Commit

Permalink
sphinxtogithub: keep the trailing / separator
Browse files Browse the repository at this point in the history
def relative_path() relies on being able to replace values
including the / separator. Keep it there to retain the
original behavior.

Related-to: git-cola#1336
Ref: 1293e18
Signed-off-by: David Aguilar <davvid@gmail.com>
(cherry picked from commit a4b0d27)
  • Loading branch information
davvid committed Aug 24, 2023
1 parent 9b2c9be commit ff93c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/sphinxtogithub/sphinxtogithub.py
Expand Up @@ -98,7 +98,7 @@ class DirectoryHandler(object):
def __init__(self, name, root, renamer):
self.name = name
self.new_name = name[1:]
self.root = str(root)
self.root = str(root) + os.sep
self.renamer = renamer

def path(self):
Expand Down

0 comments on commit ff93c5c

Please sign in to comment.