git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Rob Shearman" <robertshearman@gmail.com>
To: git@vger.kernel.org
Subject: [PATCH] git-imap-send: Allow the program to be run from subdirectories of a git tree.
Date: Sun, 1 Jun 2008 16:28:44 +0100	[thread overview]
Message-ID: <1096648c0806010828yf4f07ebt3f758f41cab5cdfd@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 8a59e6e80cd62ce64462486b2b9c9b39053d2777.diff --]
[-- Type: text/x-patch; name=8a59e6e80cd62ce64462486b2b9c9b39053d2777.diff, Size: 324 bytes --]

diff --git a/imap-send.c b/imap-send.c
index 1ec1310..89a1532 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -1296,6 +1296,7 @@ main(int argc, char **argv)
 	/* init the random number generator */
 	arc4_init();
 
+	setup_git_directory_gently( NULL );
 	git_config(git_imap_config, NULL);
 
 	if (!imap_folder) {

             reply	other threads:[~2008-06-01 15:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-01 15:28 Rob Shearman [this message]
2008-06-01 22:04 ` [PATCH] git-imap-send: Allow the program to be run from subdirectories of a git tree Miklos Vajna
2008-06-02  8:18   ` Rob Shearman
2008-06-02 13:21     ` Miklos Vajna

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=1096648c0806010828yf4f07ebt3f758f41cab5cdfd@mail.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).