Skip to content
Permalink
Browse files

Bug Fix (#10): Updated fix to match PR

  • Loading branch information...
the-bumble committed Jul 22, 2019
1 parent 2e9478d commit 3310a19a519ee12779dc8eedf3d4f221cf23324c
Showing with 5 additions and 2 deletions.
  1. +5 −2 gitgot.py
@@ -9,6 +9,7 @@
import sre_constants
import os
import os.path
import urllib.parse


SIMILARITY_THRESHOLD = 65
@@ -100,8 +101,10 @@ def should_parse(repo, state):

# Fuzzy Hash Comparison
try:
# Temporary fix for PyGithub until fixed upstream
repo._url.value = repo._url.value.replace("#", "%23")
# Temporary fix for PyGithub until fixed upstream (PyGithub#1178)
repo._url.value = repo._url.value.replace(
repo._path.value,
urllib.parse.quote(repo._path.value))

candidate_sig = ssdeep.hash(repo.decoded_content)
for sig in state.bad_signatures:

0 comments on commit 3310a19

Please sign in to comment.
You can’t perform that action at this time.