{"thread":{"id":"15205","subject":"[PATCH] index-pack: setup git repository","startedAt":"2008-08-26T14:32:42Z","lastAt":"2008-08-26T14:32:42Z","messageCount":1,"participants":["Nguyễn Thái Ngọc Duy"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"88579","messageId":"1219761162-5942-1-git-send-email-pclouds@gmail.com","threadId":"15205","inReplyTo":null,"subject":"[PATCH] index-pack: setup git repository","fromName":"Nguyễn Thái Ngọc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2008-08-26T14:32:42Z","receivedAt":"2008-08-26T14:32:42Z","isPatch":true,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"\"git index-pack\" is an independent command and does not setup git\nrepository while still need pack.indexversion. It may miss the\ninfo if it is in a subdirectory of the repository.\n\nSigned-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>\n---\n index-pack.c |    2 ++\n 1 files changed, 2 insertions(+), 0 deletions(-)\n\ndiff --git a/index-pack.c b/index-pack.c\nindex 52064be..728af7d 100644\n--- a/index-pack.c\n+++ b/index-pack.c\n@@ -876,7 +876,9 @@ int main(int argc, char **argv)\n \tchar *index_name_buf = NULL, *keep_name_buf = NULL;\n \tstruct pack_idx_entry **idx_objects;\n \tunsigned char sha1[20];\n+\tint nongit = 0;\n \n+\tsetup_git_directory_gently(&nongit);\n \tgit_config(git_index_pack_config, NULL);\n \n \tfor (i = 1; i < argc; i++) {\n-- \n1.6.0.96.g2fad1.dirty\n"}]}