Changeset 788 in tailor


Ignore:
Timestamp:
09/07/05 20:41:54 (8 years ago)
Author:
Todd Mokros <tmokros@…>
Hash name:
20050907184154-4e4b6-8395c948216847dc770f8e0abdc70d3eb6e47728
Message:

Update git backend for external command name move

Location:
vcpx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository.py

    r784 r788  
    258258class GitRepository(Repository): 
    259259    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') 
    265264 
    266265 
  • vcpx/git.py

    r786 r788  
    3232        notdirs = [n for n in names if not isdir(join(self.basedir, n))] 
    3333        if notdirs: 
    34             cmd = [self.repository.GIT_CMD, "add"] 
     34            cmd = self.repository.command("add") 
    3535            ExternalCommand(cwd=self.basedir, command=cmd).execute(notdirs) 
    3636 
     
    8383        # '-f' flag means we can get empty commits, which 
    8484        # shouldn't be a problem. 
    85         cmd = [self.repository.GIT_CMD, "commit", "-a", "-F", "-"] 
     85        cmd = self.repository.command("commit", "-a", "-F", "-") 
    8686        c = ExternalCommand(cwd=self.basedir, command=cmd) 
    8787 
     
    143143        if not exists(join(self.basedir, self.repository.METADIR)): 
    144144            init = ExternalCommand(cwd=self.basedir, 
    145                                    command=[self.repository.GIT_CMD, 
    146                                             "init-db"]) 
     145                                   command=self.repository.command("init-db")) 
    147146            init.execute() 
    148147 
Note: See TracChangeset for help on using the changeset viewer.