Changeset 788 in tailor
- Timestamp:
- 09/07/05 20:41:54 (8 years ago)
- Hash name:
- 20050907184154-4e4b6-8395c948216847dc770f8e0abdc70d3eb6e47728
- Location:
- vcpx
- Files:
-
- 2 edited
-
repository.py (modified) (1 diff)
-
git.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/repository.py
r784 r788 258 258 class GitRepository(Repository): 259 259 METADIR = '.git' 260 GIT_CMD = 'git' 261 262 def _load(self, config): 263 Repository._load(self, config) 264 self.GIT_CMD = config.get(self.name, 'git-command', self.GIT_CMD) 260 261 def _load(self, config): 262 Repository._load(self, config) 263 self.EXECUTABLE = config.get(self.name, 'git-command', 'git') 265 264 266 265 -
vcpx/git.py
r786 r788 32 32 notdirs = [n for n in names if not isdir(join(self.basedir, n))] 33 33 if notdirs: 34 cmd = [self.repository.GIT_CMD, "add"]34 cmd = self.repository.command("add") 35 35 ExternalCommand(cwd=self.basedir, command=cmd).execute(notdirs) 36 36 … … 83 83 # '-f' flag means we can get empty commits, which 84 84 # shouldn't be a problem. 85 cmd = [self.repository.GIT_CMD, "commit", "-a", "-F", "-"]85 cmd = self.repository.command("commit", "-a", "-F", "-") 86 86 c = ExternalCommand(cwd=self.basedir, command=cmd) 87 87 … … 143 143 if not exists(join(self.basedir, self.repository.METADIR)): 144 144 init = ExternalCommand(cwd=self.basedir, 145 command=[self.repository.GIT_CMD, 146 "init-db"]) 145 command=self.repository.command("init-db")) 147 146 init.execute() 148 147
Note: See TracChangeset
for help on using the changeset viewer.
