Re: libgit: git_setup_directory() is not reentrant
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 4, 2008, 20:40 UTC
- Message-ID
- <7vd4shjpdi.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <477E67C5.5020301@pipapo.org>
Christian Thaeter <ct@pipapo.org> writes:
> While working on a git-browser, I noticed that git_setup_directory() is > not reentrant.
Yup, that comes from a longstanding design of git that "a command runs once and exits". Do not call that twice, or help the libification effort.