diff --git a/jatosAPI.py b/jatosAPI.py index ddf15f0..6236004 100644 --- a/jatosAPI.py +++ b/jatosAPI.py @@ -228,14 +228,13 @@ def move_txt(txt_files): def push(): - subprocess.run(["git","remote", "set-url", "https://github.com/HBClab/boost-beh-AF.git"]) - subprocess.run(["git", "config", "--global", "user.email", "miloswrath@users.noreply.github.com"]) - subprocess.run(["git", "config", "--global", "user.name", "miloswrath"]) - subprocess.run(["git", "config", "--global", "user.password", "Milocute23"]) - subprocess.run(["git", "add", "-A"]) - subprocess.run(["git", "commit", "-m", "auto commit -> added subject task data"]) - subprocess.run(["git", "push"]) - + import git + repo = git.Repo('./') + repo.git.add('.') + repo.git.commit('-m', 'new data') + origin = repo.remote(name='origin') + origin.push() + return None def main(): args = parse_cmd()