Re: permissions
On Sat, Jun 5, 2010 at 20:23, William Pursell <bill.pursell@gmail.com> wrote:
Show 5 quoted lines
> fatal: Not a git repository (or any of the parent directories): .git
>
> That's just weird. And if there is a git repository in a
> directory above, there may be great confusion, weeping
> and gnashing of teeth.
How about just this? (I assume cwd does hold current working directory).
diff --git a/setup.c b/setup.c
index 5a083fa..561f3ab 100644
--- a/setup.c
+++ b/setup.c
@@ -428,7 +428,7 @@ const char *setup_git_directory_gently(int *nongit_ok)
*nongit_ok = 1;
return NULL;
}
- die("Not a git repository (or any of the parent directories): %s",
DEFAULT_GIT_DIR_ENVIRONMENT);
+ die("Not a git repository (or any of the parent directories): %s
(in %s)", DEFAULT_GIT_DIR_ENVIRONMENT, cwd);
}
if (one_filesystem) {
if (stat("..", &buf)) {