Mercurial > hg-git
changeset 133:f2dfb2bed724
Allow storing the git directory intree
author | Sverre Rabbelier <sverre@rabbelier.nl> |
---|---|
date | Thu, 14 May 2009 20:32:54 +0200 |
parents | b3be536e3f50 |
children | 324a1ad9212a |
files | git_handler.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/git_handler.py Mon May 11 16:03:57 2009 -0700 +++ b/git_handler.py Thu May 14 20:32:54 2009 +0200 @@ -50,7 +50,12 @@ self.ui = ui self.mapfile = 'git-mapfile' self.configfile = 'git-config' - self.gitdir = self.repo.join('git') + + if ui.config('git', 'intree'): + self.gitdir = self.repo.wjoin('.git') + else: + self.gitdir = self.repo.join('git') + self.init_if_missing() self.load_git() self.load_map()