summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2b84373)
raw | patch | inline | side by side (parent: 2b84373)
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Tue, 26 Aug 2008 14:32:42 +0000 (21:32 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 26 Aug 2008 23:25:48 +0000 (16:25 -0700) |
"git index-pack" is an independent command and does not setup git
repository while still need pack.indexversion. It may miss the
info if it is in a subdirectory of the repository.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
repository while still need pack.indexversion. It may miss the
info if it is in a subdirectory of the repository.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
index-pack.c | patch | blob | history |
diff --git a/index-pack.c b/index-pack.c
index 52064befdbbbdf671bd08e369a133d4f1fee03c1..728af7da9c87646a869af5da5444943c0c66f89e 100644 (file)
--- a/index-pack.c
+++ b/index-pack.c
char *index_name_buf = NULL, *keep_name_buf = NULL;
struct pack_idx_entry **idx_objects;
unsigned char sha1[20];
+ int nongit = 0;
+ setup_git_directory_gently(&nongit);
git_config(git_index_pack_config, NULL);
for (i = 1; i < argc; i++) {