From: Vincent van Ravesteijn <vfr@lyx.org>
To: git@vger.kernel.org
Cc: gitster@pobox.com, Vincent van Ravesteijn <vfr@lyx.org>
Subject: [PATCH] git-upload-pack: Setup exec_path before gettext
Date: Wed, 6 Jun 2012 13:03:29 +0000 [thread overview]
Message-ID: <1338987809-7212-1-git-send-email-vfr@lyx.org> (raw)
In-Reply-To: <1338987675-7388-1-git-send-email-vfr@lyx.org>
If RUNTIME_PREFIX is set, git_setup_gettext() uses system_path() to find
the directory with po-files. The function system_path() needs the
exec_path so this needs to be setup first before setting up gettext().
Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org>
---
upload-pack.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/upload-pack.c b/upload-pack.c
index bb08e2e..f5ba770 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -791,10 +791,11 @@ int main(int argc, char **argv)
int i;
int strict = 0;
- git_setup_gettext();
-
packet_trace_identity("upload-pack");
git_extract_argv0_path(argv[0]);
+
+ git_setup_gettext();
+
read_replace_refs = 0;
for (i = 1; i < argc; i++) {
--
1.7.9.msysgit.0
next prev parent reply other threads:[~2012-06-06 13:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-06 13:01 [PATCH] Use system_path to find 'po'-dir to resolve relative paths Vincent van Ravesteijn
2012-06-06 13:03 ` Vincent van Ravesteijn [this message]
2012-06-06 18:28 ` Junio C Hamano
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=1338987809-7212-1-git-send-email-vfr@lyx.org \
--to=vfr@lyx.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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).