Browse Source

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>
maint
Robert Shearman 17 years ago committed by Junio C Hamano
parent
commit
a0406b94d5
  1. 2
      imap-send.c

2
imap-send.c

@ -1292,10 +1292,12 @@ main(int argc, char **argv)
int ofs = 0; int ofs = 0;
int r; int r;
int total, n = 0; int total, n = 0;
int nongit_ok;


/* init the random number generator */ /* init the random number generator */
arc4_init(); arc4_init();


setup_git_directory_gently(&nongit_ok);
git_config(git_imap_config, NULL); git_config(git_imap_config, NULL);


if (!imap_folder) { if (!imap_folder) {

Loading…
Cancel
Save