Skip to content

Commit 754b054

Browse files
committed
Remove git from init.py
1 parent 58d7710 commit 754b054

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

init.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ def query_yes_no(question, default="yes"):
5151
if not brief.strip():
5252
brief = "No description"
5353

54-
use_git = query_yes_no("Do you want to initialize git?", default="no")
55-
git_url = ""
56-
if use_git:
57-
git_url = input("Please enter the url of your git repository: ").strip()
58-
5954
def template(name, target, **kwargs):
6055
f = open(name)
6156
text = f.read()
@@ -73,8 +68,3 @@ def template(name, target, **kwargs):
7368
template('cmake/template_src.txt', 'src/CMakeLists.txt', **kwargs)
7469
template('cmake/template_test.txt', 'test/CMakeLists.txt', **kwargs)
7570

76-
if git_url.strip():
77-
print('Initializing git...')
78-
os.system('git remote rm origin > /dev/null 2>&1 || git init > /dev/null 2>&1')
79-
os.system('git remote add origin ' + git_url)
80-

0 commit comments

Comments
 (0)