mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-12-12 03:22:18 +00:00
disambiguate error messages
This commit is contained in:
parent
26eff0172b
commit
700512c008
@ -298,7 +298,8 @@ def write_and_commit(files, message):
|
|||||||
else:
|
else:
|
||||||
print(f"No change {filepath}")
|
print(f"No change {filepath}")
|
||||||
filepaths = [filepath for filepath, content, encoding in files]
|
filepaths = [filepath for filepath, content, encoding in files]
|
||||||
cmd_commit = [git, "commit"] + filepaths + ["-m", message]
|
message = message + " " + str(filepaths)
|
||||||
|
cmd_commit = [git, "commit", "-m", message]
|
||||||
cm_status = subprocess.run(cmd_commit, cwd=cwd, capture_output=True, text=True)
|
cm_status = subprocess.run(cmd_commit, cwd=cwd, capture_output=True, text=True)
|
||||||
commands.append(cmd_commit)
|
commands.append(cmd_commit)
|
||||||
if cm_status.returncode != 0:
|
if cm_status.returncode != 0:
|
||||||
@ -315,7 +316,7 @@ def write_and_commit(files, message):
|
|||||||
f"ERROR committing. Edits saved, [maybe] added to git, but NOT committed.\n\n"
|
f"ERROR committing. Edits saved, [maybe] added to git, but NOT committed.\n\n"
|
||||||
+ msgdata
|
+ msgdata
|
||||||
)
|
)
|
||||||
cmd_status = [git, "status"] + filepaths
|
cmd_status = [git, "status"] # + filepaths
|
||||||
cp_status = subprocess.run(cmd_status, cwd=cwd, capture_output=True, text=True)
|
cp_status = subprocess.run(cmd_status, cwd=cwd, capture_output=True, text=True)
|
||||||
commands.append(cp_status)
|
commands.append(cp_status)
|
||||||
#This produces return code = 1 if it commits OK, but when the repo still needs to be pushed to origin/expoweb
|
#This produces return code = 1 if it commits OK, but when the repo still needs to be pushed to origin/expoweb
|
||||||
|
Loading…
Reference in New Issue
Block a user