diff options
author | David Aguilar <davvid@gmail.com> | 2008-05-29 17:53:30 -0700 |
---|---|---|
committer | David Aguilar <davvid@gmail.com> | 2008-05-29 17:53:30 -0700 |
commit | cbbb6b349e8d0557e7e55e2d05819d6bdaed3769 (patch) | |
tree | 2ebb7aac2e26486ae352418e011c7240ffdc4c5c /lib/git/repo.py | |
parent | ebee400cfa4a532018ee904c22c7e3e6619ca4de (diff) | |
download | gitpython-cbbb6b349e8d0557e7e55e2d05819d6bdaed3769.tar.gz |
git.py: make git_dir an optional parameter
git_dir is now optional in the constructor for git.Git.
Git now falls back to os.getcwd() when git_dir is not specified.
Furthermore, extra checks were added so that the git_dir
variable always points to the root of the worktree for
non-bare repositories.
Signed-off-by: David Aguilar <davvid@gmail.com>
Diffstat (limited to 'lib/git/repo.py')
0 files changed, 0 insertions, 0 deletions