From: martin f. krafft Date: Fri, 21 Nov 2008 12:09:09 +0000 (+0100) Subject: update message X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;ds=sidebyside;h=989fc0e54e8f30d3cb421c168a8093d9691769be;hp=e0e1ce4d27242585b6edeb35ca3cf62a6454b074;p=topgit.git update message --- 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