forked from expo/troggle
SHould be nearly working, but crashes on saving edited entry
This commit is contained in:
@@ -405,8 +405,11 @@ def git_commit(cwd, message, editor, commands=[]):
|
||||
print(f"..{message=}\n..{editor=}")
|
||||
cmd_commit = [git, "commit", "-m", message, "--author", f"{editor}"]
|
||||
commands.append(cmd_commit)
|
||||
|
||||
cp_commit = subprocess.run(cmd_commit, cwd=cwd, capture_output=True, text=True)
|
||||
print(commands)
|
||||
try:
|
||||
cp_commit = subprocess.run(cmd_commit, cwd=cwd, capture_output=True, text=True)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
# This produces return code = 1 if it commits OK, but when the local repo still needs to be pushed to origin/repo
|
||||
# which will be the case when running a test troggle system on a development machine
|
||||
|
||||
|
||||
Reference in New Issue
Block a user