From 4338afd00053c9563641d39ff3218cb5e5a734e5 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Fri, 17 Jun 2011 23:11:09 -0400 Subject: [PATCH] Refs #7381. If git_dir points to a cloned repo instead of a control dir, don't show an error that sounds like a suggestion to replace the dir with the same dir. --- tracext/git/PyGIT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracext/git/PyGIT.py b/tracext/git/PyGIT.py index 2f33951..7032ad2 100644 --- a/tracext/git/PyGIT.py +++ b/tracext/git/PyGIT.py @@ -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))