Skip to content

Commit 9ded069

Browse files
committed
Fix regex bug
1 parent 506f506 commit 9ded069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github2gitlab/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def git_mirror(self):
243243
def git_mirror_optimize(self, repo):
244244
self.sh("git fetch origin +refs/pull/*:refs/remotes/origin/pull/*")
245245
for head in repo.refs:
246-
pr = re.search('^origin/pull/(\d+)/head$', head.name)
246+
pr = re.search('^origin/pull/(\\d+)/head$', head.name)
247247
if not pr:
248248
continue
249249
pr = pr.group(1)

0 commit comments

Comments
 (0)