From 77bdcc10242f4b28fedb49be278985575e83b5ac Mon Sep 17 00:00:00 2001 From: Nathan McRae Date: Sat, 20 Jul 2024 09:29:05 -0700 Subject: [PATCH] Change repo dir from .git to .subcommit-git --- libwyag.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libwyag.py b/libwyag.py index a0fc577..4e3c7bf 100644 --- a/libwyag.py +++ b/libwyag.py @@ -50,7 +50,7 @@ class GitRepository (object): def __init__(self, path, force=False): self.worktree = path.replace("\\", "/") - self.gitdir = join_path(path, ".git") + self.gitdir = join_path(path, ".subcommit-git") if not (force or os.path.isdir(self.gitdir)): raise Exception(f"Not a git repository {path}") @@ -156,7 +156,7 @@ def cmd_init(args): def repo_find(path=".", required=True): path = os.path.realpath(path) - if os.path.isdir(join_path(path, ".git")): + if os.path.isdir(join_path(path, ".subcommit-git")): return GitRepository(path) # If we haven't returned, recurse in parent @@ -1093,7 +1093,7 @@ def check_ignore(rules, path): raise Exception("This function requires path to be relative to the repository's root") # Eh, just hardcode it - if (path.startswith(".git")): + if (path.startswith(".subcommit-git")): return True result = check_ignore_scoped(rules.scoped, path)