From 989fc0e54e8f30d3cb421c168a8093d9691769be Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 21 Nov 2008 13:09:09 +0100 Subject: [PATCH] update message --- .topmsg | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.topmsg b/.topmsg index e7351b9..e0237b6 100644 --- a/.topmsg +++ b/.topmsg @@ -1,8 +1,15 @@ From: martin f. krafft -Subject: [TopGit PATCH] ensure we are in the worktree, not .git +Subject: [TopGit PATCH] Ensure we are inside a Git worktree Bert Wesarg suggests to check that we are not inside the .git directory before setting up topgit. Because git rev-parse --git-dir only works in the top .git dir, not deeper (i.e. inside .git/refs) and will always return "." +This patch thus causes topgit to die early on when it's called from outside of +a Git repository, or from underneath .git and outputs error messages +accordingly. + +This temporarily makes it even more impossible to call tg --help, but I expect +to have that fixed soon too. + Signed-off-by: martin f. krafft -- 2.30.2