Skip to content

Commit

Permalink
git-pw: Make git-pw work with older versions of GitPython
Browse files Browse the repository at this point in the history
The search_parent_directories parameter is relatively new and older
versions of GitPython don't have it. The default was, and still is, to
recurse in parent directories so we don't actually need to specify it at
all.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
  • Loading branch information
Damien Lespiau committed Nov 11, 2015
1 parent 77ae78c commit 7403987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-pw/git-pw
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class GitPatchwork(object):

def setup(self):
try:
self.repo = git.Repo(os.getcwd(), search_parent_directories=True)
self.repo = git.Repo(os.getcwd())
except git.exc.InvalidGitRepositoryError as e:
if self.cmd.need_git_repo:
die('Not a git repository.')
Expand Down

0 comments on commit 7403987

Please sign in to comment.