Close the file before git adding it, so you can be sure the buffers...
...have been flushed.
This commit is contained in:
parent
45083701af
commit
a2f64398e7
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ if __name__ == "__main__":
|
|||
# Store add-on timestamp
|
||||
with open(os.path.join(addon_obj.get_dir(), ADDONVER_FILE), "w") as timestamp_file:
|
||||
timestamp_file.write(str(server_timestamp))
|
||||
addon_obj._execute(["git", "add", ADDONVER_FILE])
|
||||
addon_obj._execute(["git", "add", ADDONVER_FILE])
|
||||
|
||||
addon_obj.commit("wescamp.py: Update from add-on server")
|
||||
logging.info("New version of addon '%s' uploaded.", addon_name)
|
||||
|
|
Loading…
Add table
Reference in a new issue