We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65ca55f commit 03981f7Copy full SHA for 03981f7
src/edit_python_pe/main.py
@@ -5,7 +5,7 @@
5
import re
6
from datetime import datetime
7
from time import sleep
8
-
+import pathlib
9
import pygit2
10
from github import Github
11
from github.GithubException import BadCredentialsException, GithubException
@@ -522,6 +522,7 @@ def save_member(self) -> None:
522
# commit & push
523
repo = pygit2.Repository(self.REPO_PATH)
524
rel_path = os.path.relpath(file_path, self.REPO_PATH)
525
+ rel_path = pathlib.Path(rel_path).as_posix() # Force path to POSIX format so Windows backslashes (\) don't break pygit2
526
repo.index.add(rel_path)
527
repo.index.write()
528
author_sig = pygit2.Signature(
0 commit comments