Re: [RFC] introduce GIT_WORK_DIR environment variable
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Mar 11, 2007, 13:27 UTC
- Message-ID
- <fcaeb9bf0703110627r6500d621rf6710c58e9e8d65b@mail.gmail.com>
- In-Reply-To
- <20070311043250.GA21331@moooo.ath.cx>
On 3/11/07, Matthias Lederhofer <matled@gmx.net> wrote:
Show 13 quoted lines
> diff --git a/environment.c b/environment.c > index 0151ad0..5c30c9b 100644 > --- a/environment.c > +++ b/environment.c > @@ -61,6 +61,8 @@ int is_bare_repository(void) > const char *dir, *s; > if (0 <= is_bare_repository_cfg) > return is_bare_repository_cfg; > + if (0 <= has_working_directory) > + return !has_working_directory; > > dir = get_git_dir(); > if (!strcmp(dir, DEFAULT_GIT_DIR_ENVIRONMENT))
Um.. git-sh-setup.sh may need special treatment because its is_bare_directory doesn't call this function.
-- Duy