Skip to content

Commit

Permalink
force git to use https
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustedSec committed Apr 26, 2018
1 parent 45d68df commit 675c7fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ptf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import os
import socket


# force https for git
def git_https_force():
subprocess.Popen('git config --global url."https://github.com/".insteadOf [email protected]:;git config --global url."https://".insteadOf git://', shell=True).wait()

def create_launcher():
"""
Create a launcher to execute PTF from the commandline.
Expand Down Expand Up @@ -62,6 +66,9 @@ if __name__ == "__main__":
print_warning("You can also run ptf with the --no-network-connection argument to bypass the network check.")
sys.exit()

# force https
git_https_force()

# try to update ourself first
print_status("Trying to update myself first.. Then starting framework.")
subprocess.Popen("git pull", shell=True).wait()
Expand Down
1 change: 1 addition & 0 deletions readme/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version 2.0

* fix launchers with $@ instead of $*
* fixed autosploit to have new install.sh and requirements met
* force github to use https

~~~~~~~~~~~~~~~~~
version 1.18
Expand Down

0 comments on commit 675c7fd

Please sign in to comment.