File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,12 @@ def fork():
7
7
8
8
print ("To quit at any point click ctrl-c" )
9
9
accOrOrg = input (
10
- "Fork to your profile or an organization" \
10
+ "Fork to your profile or an organization"
11
11
"(type org for organization, acc for profile): " )
12
-
13
12
while (accOrOrg != "acc" and accOrOrg != "org" ):
14
13
accOrOrg = input ("invalid answer: acc or org: " )
15
-
16
14
username = input ("Your github username: " )
17
15
password = input ("Your github password: " )
18
-
19
16
try :
20
17
g = Github (username , password )
21
18
user = g .get_user ()
@@ -26,7 +23,6 @@ def fork():
26
23
org = input ("name of your organization: " )
27
24
org = g .get_organization (org )
28
25
org .create_fork (g .get_repo (repo ))
29
-
30
26
clone (username , repo )
31
27
except Exception as e :
32
28
print ("ERROR: " + str (e ))
@@ -39,7 +35,6 @@ def clone(repo):
39
35
location = input (
40
36
"Path for cloning repo into" /
41
37
"(default is current directory): " )
42
-
43
38
try :
44
39
if len (location .strip ()) != 0 :
45
40
arr = repo .split ("/" )
You can’t perform that action at this time.
0 commit comments