Skip to content
This repository was archived by the owner on May 22, 2019. It is now read-only.

Better suggestion for wrong git_dir #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tracext/git/PyGIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def __init__(self, git_dir, log, git_bin='git', git_fs_encoding=None):
self.logger.error("GIT control files missing in '%s'" % git_dir)
if os.path.exists(__git_file_path('.git')):
self.logger.error("entry '.git' found in '%s'"
" -- maybe use that folder instead..." % git_dir)
" -- maybe use %s instead..." % os.path.join(git_dir, '.git'))
raise GitError("GIT control files not found, maybe wrong directory?")

self.logger.debug("PyGIT.Storage instance %d constructed" % id(self))
Expand Down