git-playback icon indicating copy to clipboard operation
git-playback copied to clipboard

Pass change_parent_directories param when instantiating git.Repo.

Open laur89 opened this issue 9 years ago • 0 comments

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
)

laur89 avatar Feb 05 '16 11:02 laur89