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:
parent
b0320eaf6a
commit
a0406b94d5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user