Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3803257
D1996.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
732 B
Referenced Files
None
Subscribers
None
D1996.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D1996: Use current Git repository path instead of /opt/salt/staging
Attached
Detach File
Event Timeline
Log In to Comment