Skip to content

Commit a4b0d27

Browse files
committed
sphinxtogithub: keep the trailing / separator
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>
1 parent 63c692a commit a4b0d27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extras/sphinxtogithub/sphinxtogithub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class DirectoryHandler:
9797
def __init__(self, name, root, renamer):
9898
self.name = name
9999
self.new_name = name[1:]
100-
self.root = str(root)
100+
self.root = str(root) + os.sep
101101
self.renamer = renamer
102102

103103
def path(self):

0 commit comments

Comments
 (0)