forked from trustedsec/ptf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
TrustedSec
committed
Apr 26, 2018
1 parent
45d68df
commit 675c7fd
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters