Skip to content

Commit

Permalink
git-imap-send: Allow the program to be run from subdirectories of a g…
Browse files Browse the repository at this point in the history
…it 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>
  • Loading branch information
Robert Shearman authored and Junio C Hamano committed Jul 26, 2008
1 parent b0320ea commit a0406b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imap-send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a0406b9

Please sign in to comment.