mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-31 10:32:11 +08:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user