Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git bare repo not supported #52

Open
glensc opened this issue Jan 19, 2013 · 0 comments
Open

git bare repo not supported #52

glensc opened this issue Jan 19, 2013 · 0 comments

Comments

@glensc
Copy link

glensc commented Jan 19, 2013

seems git-bzr can't work well with bare repos, because it assumes root_dir = parent dir of git dir, which is not true for bare repos

def git_dir(self, path=None):
  if not self._git_dir:
    self._git_dir = os.path.abspath(git(['rev-parse', '--git-dir']).strip())
  if path:
    return os.path.join(self._git_dir, path)
  return self._git_dir

def root_dir(self, path=None):
  if not self._root_dir:
    self._root_dir = os.path.dirname(self.git_dir())
  if path:
    return os.path.join(self._root_dir, path)
  return self._root_dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant