git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-imap-send: Allow the program to be run from subdirectories of a git tree.
@ 2008-06-01 15:28 Rob Shearman
  2008-06-01 22:04 ` Miklos Vajna
  0 siblings, 1 reply; 4+ messages in thread
From: Rob Shearman @ 2008-06-01 15:28 UTC (permalink / raw)
  To: git

[-- 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) {

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-02 13:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-01 15:28 [PATCH] git-imap-send: Allow the program to be run from subdirectories of a git tree Rob Shearman
2008-06-01 22:04 ` Miklos Vajna
2008-06-02  8:18   ` Rob Shearman
2008-06-02 13:21     ` Miklos Vajna

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).