git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Shearman <robertshearman@gmail.com>
To: git@vger.kernel.org
Cc: Robert Shearman <robertshearman@gmail.com>
Subject: [PATCH 1/4] git-imap-send: Allow the program to be run from subdirectories of a git tree.
Date: Wed,  9 Jul 2008 22:28:59 +0100	[thread overview]
Message-ID: <1215638942-25010-1-git-send-email-robertshearman@gmail.com> (raw)

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>
---
 imap-send.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/imap-send.c b/imap-send.c
index 1ec1310..24d76a7 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -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) {
-- 
1.5.6.2.224.g26efb.dirty

             reply	other threads:[~2008-07-09 21:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-09 21:28 Robert Shearman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-07-08 22:18 [PATCH 1/4] git-imap-send: Allow the program to be run from subdirectories of a git tree Robert Shearman
2008-07-09  1:15 ` Junio C Hamano
2008-07-09  1:28   ` Jay Soffian
2008-07-09 12:08     ` Rob Shearman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1215638942-25010-1-git-send-email-robertshearman@gmail.com \
    --to=robertshearman@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).