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

Pass change_parent_directories param when instantiating git.Repo. #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

laur89
Copy link

@laur89 laur89 commented Feb 5, 2016

Otherwise git-playback works only if your working dir is on the repo root.

Note that git/repo/base.py's Repo constructor is

    def __init__(self, path=None, odbt=DefaultDBType, search_parent_directories=False):

meaning we need to pass the dbtype as well.
And in the same file DefaultDBType is defined as

DefaultDBType = GitDB

(with GitDB import as:)

from git.db import (
    GitCmdObjectDB,
    GitDB
)

jianli and others added 2 commits September 12, 2019 18:20
Otherwise git-playback works only if your working dir is on the repo root.
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

Successfully merging this pull request may close these issues.

2 participants