Page MenuHomeDevCentral

D1996.diff
No OneTemporary

D1996.diff

diff --git a/roles/saltmaster/software/files/staging-commit-message.py b/roles/saltmaster/software/files/staging-commit-message.py
--- a/roles/saltmaster/software/files/staging-commit-message.py
+++ b/roles/saltmaster/software/files/staging-commit-message.py
@@ -17,10 +17,6 @@
import re
import subprocess
-
-staging_repo_path = '/opt/salt/staging'
-
-
class SubmoduleCommit:
def __init__(self, repo_path, submodule_path):
@@ -91,5 +87,10 @@
print("\n\n".join(commits))
+def determine_current_repo():
+ return Repo('.', search_parent_directories=True).working_tree_dir
+
+
if __name__ == "__main__":
- run(staging_repo_path)
+ current_repo_path = determine_current_repo()
+ run(current_repo_path)

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 30, 16:29 (21 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2273165
Default Alt Text
D1996.diff (732 B)

Event Timeline