Re: git-shortlog hangs on bare repo without --bare option

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Wednesday, August 27, 2008 - 3:41 pm

Junio C Hamano <gitster@pobox.com> writes:


And I think this is related to the complexity that snuck in when worktree
feature was added to the setup sequence.

Untested, but I think this would help.

 setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git c/setup.c w/setup.c
index 6cf9094..296f712 100644
--- c/setup.c
+++ w/setup.c
@@ -461,7 +461,7 @@ const char *setup_git_directory_gently(int *nongit_ok)
 			inside_git_dir = 1;
 			if (!work_tree_env)
 				inside_work_tree = 0;
-			setenv(GIT_DIR_ENVIRONMENT, ".", 1);
+			set_git_dir(".");
 			check_repository_format_gently(nongit_ok);
 			return NULL;
 		}
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-shortlog hangs on bare repo without --bare option, Garry Dolley, (Wed Aug 27, 12:52 pm)
Re: git-shortlog hangs on bare repo without --bare option, Junio C Hamano, (Wed Aug 27, 1:32 pm)
Re: git-shortlog hangs on bare repo without --bare option, René Scharfe, (Wed Aug 27, 2:40 pm)
Re: git-shortlog hangs on bare repo without --bare option, Junio C Hamano, (Wed Aug 27, 3:19 pm)
Re: git-shortlog hangs on bare repo without --bare option, Junio C Hamano, (Wed Aug 27, 3:41 pm)
Re: git-shortlog hangs on bare repo without --bare option, Junio C Hamano, (Wed Aug 27, 4:09 pm)
Re: git-shortlog hangs on bare repo without --bare option, Junio C Hamano, (Wed Aug 27, 4:16 pm)
Re: git-shortlog hangs on bare repo without --bare option, Junio C Hamano, (Wed Aug 27, 9:56 pm)
Re: git-shortlog hangs on bare repo without --bare option, Nguyen Thai Ngoc Duy, (Thu Aug 28, 12:16 am)