Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 56fbd08

Browse files
committed
Automated commit -> added return statement to parser in jatosapi
1 parent b1dd8a6 commit 56fbd08

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

jatosAPI.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,13 @@ def move_txt(txt_files):
228228

229229

230230
def push():
231-
subprocess.run(["git","remote", "set-url", "https://github.com/HBClab/boost-beh-AF.git"])
232-
subprocess.run(["git", "config", "--global", "user.email", "[email protected]"])
233-
subprocess.run(["git", "config", "--global", "user.name", "miloswrath"])
234-
subprocess.run(["git", "config", "--global", "user.password", "Milocute23"])
235-
subprocess.run(["git", "add", "-A"])
236-
subprocess.run(["git", "commit", "-m", "auto commit -> added subject task data"])
237-
subprocess.run(["git", "push"])
238-
231+
import git
232+
repo = git.Repo('./')
233+
repo.git.add('.')
234+
repo.git.commit('-m', 'new data')
235+
origin = repo.remote(name='origin')
236+
origin.push()
237+
return None
239238

240239
def main():
241240
args = parse_cmd()

0 commit comments

Comments
 (0)