Skip to content

Commit

Permalink
Make sure invalid repo URLs do not let gitkeyfinder wait forever for …
Browse files Browse the repository at this point in the history
…a password
  • Loading branch information
hannob committed Feb 11, 2025
1 parent 915c247 commit 4ee3ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitkeyfinder
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if "://" in args.repo:
logging.info("Cloning repo %s", args.repo)
# Call git directly, as cloning with libgit2/pygit2 is
# very slow: https://github.com/libgit2/libgit2/issues/4674
subprocess.check_output(["git", "clone", args.repo, tmpdir])
subprocess.check_output(["git", "clone", args.repo, tmpdir], env={"GIT_TERMINAL_PROMPT": "0"})
rep = pygit2.Repository(tmpdir)
up = urllib.parse.urlparse(args.repo)
host = up.hostname
Expand Down

0 comments on commit 4ee3ac5

Please sign in to comment.