summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2008-10-29 15:20:02 -0700
committerShawn O. Pearce <sop@google.com>2008-10-29 15:24:34 -0700
commit7965f9fed083f07255d62f2a4a49fb54424356e4 (patch)
tree60b0eff346743da51bf3f4952bd40623e046c362 /main.py
parentde646819b8e43a906d86a579c68118cad31934cc (diff)
downloadgit-repo-7965f9fed083f07255d62f2a4a49fb54424356e4.tar.gz
Move the Editor configuration out of Manifest's constructor
This way we can build more than one Manifest instance in memory and not muck around with the Editor configuration each time we build a new instance. Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index 85c29417..0901c845 100755
--- a/main.py
+++ b/main.py
@@ -28,6 +28,7 @@ import re
28import sys 28import sys
29 29
30from command import InteractiveCommand, PagedCommand 30from command import InteractiveCommand, PagedCommand
31from editor import Editor
31from error import NoSuchProjectError 32from error import NoSuchProjectError
32from error import RepoChangedException 33from error import RepoChangedException
33from manifest import Manifest 34from manifest import Manifest
@@ -77,6 +78,7 @@ class _Repo(object):
77 78
78 cmd.repodir = self.repodir 79 cmd.repodir = self.repodir
79 cmd.manifest = Manifest(cmd.repodir) 80 cmd.manifest = Manifest(cmd.repodir)
81 Editor.globalConfig = cmd.manifest.globalConfig
80 82
81 if not gopts.no_pager and not isinstance(cmd, InteractiveCommand): 83 if not gopts.no_pager and not isinstance(cmd, InteractiveCommand):
82 config = cmd.manifest.globalConfig 84 config = cmd.manifest.globalConfig