Files
git/builtin
Jeff King f1c126bd8b setup: set startup_info->have_repository more reliably
When setup_git_directory() is called, we set a flag in
startup_info to indicate we have a repository. But there are
a few other mechanisms by which we might set up a repo:

  1. When creating a new repository via init_db(), we
     transition from no-repo to being in a repo. We should
     tweak this flag at that moment.

  2. In enter_repo(), a stricter form of
     setup_git_directory() used by server-side programs, we
     check the repository format config. After doing so, we
     know we're in a repository, and can set the flag.

With these changes, library code can now reliably tell
whether we are in a repository and act accordingly. We'll
leave the "prefix" field as NULL, which is what happens when
setup_git_directory() finds there is no prefix.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-03-06 17:18:16 -08:00
..
2016-02-24 13:26:01 -08:00
2016-02-26 13:37:16 -08:00
2016-02-26 13:37:16 -08:00
2016-02-26 13:37:16 -08:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2016-02-26 13:37:16 -08:00
2016-02-26 13:37:16 -08:00
2015-11-20 08:02:05 -05:00
2016-02-26 13:37:16 -08:00
2016-02-10 14:20:08 -08:00
2016-02-26 13:37:16 -08:00
2015-11-20 08:02:05 -05:00
2016-02-26 13:37:16 -08:00
2016-01-28 16:10:14 -08:00
2016-02-26 13:37:25 -08:00
2016-02-26 13:37:19 -08:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2016-02-22 13:10:21 -08:00
2016-01-28 16:10:14 -08:00
2015-11-20 08:02:05 -05:00
2016-02-26 13:37:16 -08:00