diff options
| author | 2020-02-08 13:15:39 +0000 | |
|---|---|---|
| committer | 2020-02-08 13:21:29 +0000 | |
| commit | 4e9df2c552b9ea6212e223e38c8f5d49be3e6d42 (patch) | |
| tree | 983f01126785e7166e27d2c59e02ad5b8841219d /src/ModuleManager.py | |
| parent | spec[2] is a string, not an array of strings (diff) | |
| signature | ||
handle git being in a detached head state when getting current commit
Diffstat (limited to 'src/ModuleManager.py')
| -rw-r--r-- | src/ModuleManager.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ModuleManager.py b/src/ModuleManager.py index dd378456..2ad086ea 100644 --- a/src/ModuleManager.py +++ b/src/ModuleManager.py @@ -272,9 +272,10 @@ class ModuleManager(object): for key, value in magic.get_exports(): context_exports.add(key, value) - current_commit = utils.git_commit(bot.directory) + branch, commit = utils.git_commit(bot.directory) + return LoadedModule(definition.name, module_title, module_object, - context, import_name, definition.is_core, commit=current_commit) + context, import_name, definition.is_core, commit=commit) def load_module(self, bot: "IRCBot.Bot", definition: ModuleDefinition ) -> LoadedModule: |
