From bfba7e8e739a6aa1e66cce5394a1cb5f014ef106 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 4 Oct 2024 12:50:32 -0700 Subject: [PATCH] refactor: move git index version URL to urls.py --- aider/main.py | 3 ++- aider/urls.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/aider/main.py b/aider/main.py index 13501847a..ed9ca0114 100644 --- a/aider/main.py +++ b/aider/main.py @@ -326,7 +326,8 @@ def sanity_check_repo(repo, io): io.tool_error("Aider only works with git repos with version number 1 or 2.") io.tool_output("You may be able to convert your repo: git update-index --index-version=2") io.tool_output("Or run aider --no-git to proceed without using git.") - io.tool_output("https://github.com/paul-gauthier/aider/issues/211") + from aider import urls + io.tool_output(urls.git_index_version) return False io.tool_error("Unable to read git repository, it may be corrupt?") diff --git a/aider/urls.py b/aider/urls.py index 91700113d..a86846e66 100644 --- a/aider/urls.py +++ b/aider/urls.py @@ -9,3 +9,4 @@ token_limits = "https://aider.chat/docs/troubleshooting/token-limits.html" llms = "https://aider.chat/docs/llms.html" large_repos = "https://aider.chat/docs/faq.html#can-i-use-aider-in-a-large-mono-repo" github_issues = "https://github.com/paul-gauthier/aider/issues/new" +git_index_version = "https://github.com/paul-gauthier/aider/issues/211"