arthaud / git-dumper

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

Fix syntax error in git_dumper.py script #44

Closed Cmbrlnd closed 8 months ago

Cmbrlnd commented 8 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 '['