Skip to content

Commit 50af49d

Browse files
author
Reean Khan
committed
and more fkale8
1 parent 85639a9 commit 50af49d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

fork_and_clone/Fnc.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def fork():
1616
try:
1717
g = Github(username, password)
1818
user = g.get_user()
19-
repo = input("Name of repo you want to fork (in the form owner/repo): ")
19+
repo = input(
20+
"Name of repo you want to fork (in the form owner/repo): ")
2021
if (accOrOrg == "acc"):
2122
user.create_fork(g.get_repo(repo))
2223
else:
@@ -33,14 +34,14 @@ def fork():
3334
def clone(repo):
3435

3536
location = input(
36-
"Path for cloning repo into" /
37+
"Path for cloning repo into"
3738
"(default is current directory): ")
3839
try:
3940
if len(location.strip()) != 0:
4041
arr = repo.split("/")
4142
subprocess.run(
42-
"git clone https://github.com/" + repo + ".git " + location +
43-
"\\" + arr[0] + "\\" + arr[1], shell=True, check=True)
43+
"git clone https://github.com/" + repo + ".git " + location
44+
+ "\\" + arr[0] + "\\" + arr[1], shell=True, check=True)
4445
else:
4546
subprocess.run(
4647
"git clone https://github.com/" + repo + ".git",

0 commit comments

Comments
 (0)