diff --git a/git-filter-repo b/git-filter-repo index 197664f..8039fdd 100755 --- a/git-filter-repo +++ b/git-filter-repo @@ -2619,8 +2619,8 @@ class RepoFilter(object): def _handle_arg_callbacks(self): def make_callback(argname, str): - exec 'def callback({}):\n'.format(argname)+\ - ' '+'\n '.join(str.splitlines()) in globals() + exec('def callback({}):\n'.format(argname)+ + ' '+'\n '.join(str.splitlines()), globals()) return callback #namespace['callback'] def handle(type): callback_field = '_{}_callback'.format(type)