diff --git a/peru/cache.py b/peru/cache.py index 4c4e694..717fcf3 100644 --- a/peru/cache.py +++ b/peru/cache.py @@ -567,6 +567,7 @@ class DirtyWorkingCopyError(PrintableError): class MergeConflictError(PrintableError): pass + TreeEntry = collections.namedtuple('TreeEntry', ['mode', 'type', 'hash']) BLOB_TYPE = 'blob' diff --git a/peru/main.py b/peru/main.py index 40e128b..7566b27 100644 --- a/peru/main.py +++ b/peru/main.py @@ -64,6 +64,7 @@ def peru_command(name, doc): return coro return decorator + COMMAND_FNS = {} COMMAND_DOCS = {} diff --git a/peru/resources/plugins/git/git_plugin.py b/peru/resources/plugins/git/git_plugin.py index 219f696..a914994 100755 --- a/peru/resources/plugins/git/git_plugin.py +++ b/peru/resources/plugins/git/git_plugin.py @@ -139,6 +139,7 @@ def plugin_reup(): with open(reup_output, 'w') as out_file: print('rev:', output.strip(), file=out_file) + command = os.environ['PERU_PLUGIN_COMMAND'] if command == 'sync': plugin_sync()