Merge pull request #6875 from nsoranzo/release_18.09_fix_commit_changeset

[18.09] Do not traceback when uploading a TS repo with no changes
This commit is contained in:
Martin Cech
2018-10-15 16:30:18 -04:00
committed by GitHub
+2
View File
@@ -61,6 +61,8 @@ def commit_changeset(repo_path, full_path_to_changeset, username, message):
except Exception as e:
error_message = "Error committing '%s' to repository: %s" % (full_path_to_changeset, e)
if isinstance(e, subprocess.CalledProcessError):
if e.returncode == 1 and 'nothing changed' in e.output:
return
error_message += "\nOutput was:\n%s" % e.output
raise Exception(error_message)