File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -376,11 +376,11 @@ def main():
376
376
377
377
# Add and commit changes
378
378
shared .add_and_commit (
379
- PATHS ["data_phase" ], "Added and committed new reports"
379
+ PATHS ["repo" ], PATHS [ " data_phase" ], "Added and committed new reports"
380
380
)
381
381
382
382
# Push changes
383
- shared .push_changes (PATHS ["data_phase " ])
383
+ shared .push_changes (PATHS ["repo " ])
384
384
385
385
386
386
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -87,13 +87,13 @@ def fetch_and_merge(repo_path, branch="main"):
87
87
raise QuantifyingException (f"Error during fetch and merge: { e } " , 1 )
88
88
89
89
90
- def add_and_commit (repo_path , message ):
90
+ def add_and_commit (repo_path , add_path , message ):
91
91
try :
92
92
repo = Repo (repo_path )
93
93
if not repo .is_dirty (untracked_files = True ):
94
94
logging .info ("No changes to commit" )
95
95
return
96
- repo .git .add (update = True )
96
+ repo .index .add ([ add_path ] )
97
97
repo .index .commit (message )
98
98
logging .info ("Changes committed" )
99
99
except InvalidGitRepositoryError :
You can’t perform that action at this time.
0 commit comments