-
Notifications
You must be signed in to change notification settings - Fork 44
git bare repo not supported #52
Copy link
Copy link
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels