git-imap-send: Allow the program to be run from subdirectories of a git tree

Call setup_git_directory_gently to allow git-imap-send to be used from
subdirectories of a git tree.

Signed-off-by: Robert Shearman <robertshearman@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Robert Shearman 2008-07-09 22:28:59 +01:00 committed by Junio C Hamano
parent b0320eaf6a
commit a0406b94d5

View File

@ -1292,10 +1292,12 @@ main(int argc, char **argv)
int ofs = 0;
int r;
int total, n = 0;
int nongit_ok;
/* init the random number generator */
arc4_init();
setup_git_directory_gently(&nongit_ok);
git_config(git_imap_config, NULL);
if (!imap_folder) {