Skip to content

Commit b64da95

Browse files
fix: fixed git commands call
1 parent 420181e commit b64da95

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Github-Automation/gitcommands.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ def init():
55
# git add <filename>
66
def createReadme():
77
if _platform == "linux" or _platform == "linux2":
8-
print('touch README.md')
8+
call('touch README.md')
99
elif _platform == "darwin":
10-
print('touch README.md')
10+
call('touch README.md')
1111
elif _platform == "win32":
12-
print('type nul>README.md')
12+
call('type nul>README.md')
1313

1414

1515
# Windows
1616
def add(filelist):
1717
for file in filelist:
1818
# perform git add on file
1919
print("Adding" , file)
20-
print(('git add ' + file))
20+
call(('git add ' + file))
2121

2222
# git commit -m "passed message"
2323
def commit(filelist):
@@ -38,5 +38,5 @@ def commit(filelist):
3838
call('cls' , shell=True)
3939
# git push
4040
def push(url , branch):
41-
print('git push -u ' + url + ' ' + branch)
42-
#added a comment
41+
call('git push -u ' + url + ' ' + branch)
42+
#added a comment

0 commit comments

Comments
 (0)