arthaud / git-dumper

A tool to dump a git repository from a website
MIT License
1.69k stars 235 forks source link

Fix syntax error in git_dumper.py script #44

Closed Cmbrlnd closed 3 months ago

Cmbrlnd commented 3 months ago

Corrected syntax error in the environment variable assignment to resolve the unmatched '[' in the f-string.

Error before fix:

File "/home/kali/Pilgrimage/git-dumper/git_dumper.py", line 468
    environment["ALL_PROXY"] = f"http.proxy={["http", "socks4h", "socks5h"][configured_proxy[0]]}" + f"://{configured_proxy[1]}:{configured_proxy[2]}"
                                               ^^^^
SyntaxError: f-string: unmatched '['