Show More
@@ -1,94 +1,94 b'' | |||
|
1 | 1 | --- a/git-sh-i18n.sh |
|
2 | 2 | +++ b/git-sh-i18n.sh |
|
3 | 3 | @@ -15,87 +15,11 @@ |
|
4 | 4 | fi |
|
5 | 5 | export TEXTDOMAINDIR |
|
6 | 6 | |
|
7 | 7 | -# First decide what scheme to use... |
|
8 | 8 | -GIT_INTERNAL_GETTEXT_SH_SCHEME=fallthrough |
|
9 |
-if test -n " |
|
|
9 | -if test -n "$GIT_GETTEXT_POISON" | |
|
10 | -then | |
|
11 | - GIT_INTERNAL_GETTEXT_SH_SCHEME=poison | |
|
12 | -elif test -n "@@USE_GETTEXT_SCHEME@@" | |
|
10 | 13 | -then |
|
11 | 14 | - GIT_INTERNAL_GETTEXT_SH_SCHEME="@@USE_GETTEXT_SCHEME@@" |
|
12 | 15 | -elif test -n "$GIT_INTERNAL_GETTEXT_TEST_FALLBACKS" |
|
13 | 16 | -then |
|
14 | 17 | - : no probing necessary |
|
15 | -elif test -n "$GIT_GETTEXT_POISON" | |
|
16 | -then | |
|
17 | - GIT_INTERNAL_GETTEXT_SH_SCHEME=poison | |
|
18 | 18 | -elif type gettext.sh >/dev/null 2>&1 |
|
19 | 19 | -then |
|
20 | 20 | - # GNU libintl's gettext.sh |
|
21 | 21 | - GIT_INTERNAL_GETTEXT_SH_SCHEME=gnu |
|
22 | 22 | -elif test "$(gettext -h 2>&1)" = "-h" |
|
23 | 23 | -then |
|
24 | 24 | - # gettext binary exists but no gettext.sh. likely to be a gettext |
|
25 | 25 | - # binary on a Solaris or something that is not GNU libintl and |
|
26 | 26 | - # lack eval_gettext. |
|
27 | 27 | - GIT_INTERNAL_GETTEXT_SH_SCHEME=gettext_without_eval_gettext |
|
28 | 28 | -fi |
|
29 | 29 | -export GIT_INTERNAL_GETTEXT_SH_SCHEME |
|
30 | 30 | - |
|
31 | 31 | -# ... and then follow that decision. |
|
32 | 32 | -case "$GIT_INTERNAL_GETTEXT_SH_SCHEME" in |
|
33 | 33 | -gnu) |
|
34 | 34 | - # Use libintl's gettext.sh, or fall back to English if we can't. |
|
35 | 35 | - . gettext.sh |
|
36 | 36 | - ;; |
|
37 | 37 | -gettext_without_eval_gettext) |
|
38 | 38 | - # Solaris has a gettext(1) but no eval_gettext(1) |
|
39 | 39 | - eval_gettext () { |
|
40 | 40 | - gettext "$1" | ( |
|
41 | 41 | - export PATH $(git sh-i18n--envsubst --variables "$1"); |
|
42 | 42 | - git sh-i18n--envsubst "$1" |
|
43 | 43 | - ) |
|
44 | 44 | - } |
|
45 | 45 | - |
|
46 | 46 | - eval_ngettext () { |
|
47 | 47 | - ngettext "$1" "$2" "$3" | ( |
|
48 | 48 | - export PATH $(git sh-i18n--envsubst --variables "$2"); |
|
49 | 49 | - git sh-i18n--envsubst "$2" |
|
50 | 50 | - ) |
|
51 | 51 | - } |
|
52 | 52 | - ;; |
|
53 | 53 | -poison) |
|
54 | 54 | - # Emit garbage so that tests that incorrectly rely on translatable |
|
55 | 55 | - # strings will fail. |
|
56 | 56 | - gettext () { |
|
57 | 57 | - printf "%s" "# GETTEXT POISON #" |
|
58 | 58 | - } |
|
59 | 59 | - |
|
60 | 60 | - eval_gettext () { |
|
61 | 61 | - printf "%s" "# GETTEXT POISON #" |
|
62 | 62 | - } |
|
63 | 63 | - |
|
64 | 64 | - eval_ngettext () { |
|
65 | 65 | - printf "%s" "# GETTEXT POISON #" |
|
66 | 66 | - } |
|
67 | 67 | - ;; |
|
68 | 68 | -*) |
|
69 | 69 | - gettext () { |
|
70 | 70 | - printf "%s" "$1" |
|
71 | 71 | - } |
|
72 | 72 | - |
|
73 | 73 | - eval_gettext () { |
|
74 | 74 | - printf "%s" "$1" | ( |
|
75 | 75 | - export PATH $(git sh-i18n--envsubst --variables "$1"); |
|
76 | 76 | - git sh-i18n--envsubst "$1" |
|
77 | 77 | - ) |
|
78 | 78 | - } |
|
79 | 79 | +# GNU gettext |
|
80 | 80 | +export GIT_INTERNAL_GETTEXT_SH_SCHEME=gnu |
|
81 | 81 | +export PATH=@gettext@/bin:$PATH |
|
82 | 82 | |
|
83 | 83 | - eval_ngettext () { |
|
84 | 84 | - (test "$3" = 1 && printf "%s" "$1" || printf "%s" "$2") | ( |
|
85 | 85 | - export PATH $(git sh-i18n--envsubst --variables "$2"); |
|
86 | 86 | - git sh-i18n--envsubst "$2" |
|
87 | 87 | - ) |
|
88 | 88 | - } |
|
89 | 89 | - ;; |
|
90 | 90 | -esac |
|
91 | 91 | +. @gettext@/bin/gettext.sh |
|
92 | 92 | |
|
93 | 93 | # Git-specific wrapper functions |
|
94 | 94 | gettextln () { |
@@ -1,26 +1,26 b'' | |||
|
1 | 1 | diff --git a/connect.c b/connect.c |
|
2 | index fd7ffe1..20cd992 100644 | |
|
2 | index c3a014c5b..fbca3262b 100644 | |
|
3 | 3 | --- a/connect.c |
|
4 | 4 | +++ b/connect.c |
|
5 | @@ -768,7 +768,7 @@ | |
|
5 | @@ -1010,7 +1010,7 @@ static void fill_ssh_args(struct child_process *conn, const char *ssh_host, | |
|
6 | 6 | |
|
7 |
|
|
|
8 |
|
|
|
9 |
- |
|
|
10 |
+ |
|
|
11 | else | |
|
12 | handle_ssh_variant(ssh, 0, | |
|
13 | &port_option, | |
|
7 | ssh = getenv("GIT_SSH"); | |
|
8 | if (!ssh) | |
|
9 | - ssh = "ssh"; | |
|
10 | + ssh = "@ssh@"; | |
|
11 | variant = determine_ssh_variant(ssh, 0); | |
|
12 | } | |
|
13 | ||
|
14 | 14 | diff --git a/git-gui/lib/remote_add.tcl b/git-gui/lib/remote_add.tcl |
|
15 |
index |
|
|
15 | index 480a6b30d..781720424 100644 | |
|
16 | 16 | --- a/git-gui/lib/remote_add.tcl |
|
17 | 17 | +++ b/git-gui/lib/remote_add.tcl |
|
18 | @@ -139,7 +139,7 @@ | |
|
18 | @@ -139,7 +139,7 @@ method _add {} { | |
|
19 | 19 | # Parse the location |
|
20 | 20 | if { [regexp {(?:git\+)?ssh://([^/]+)(/.+)} $location xx host path] |
|
21 | 21 | || [regexp {([^:][^:]+):(.+)} $location xx host path]} { |
|
22 | 22 | - set ssh ssh |
|
23 | 23 | + set ssh @ssh@ |
|
24 | 24 | if {[info exists env(GIT_SSH)]} { |
|
25 | 25 | set ssh $env(GIT_SSH) |
|
26 | 26 | } |
General Comments 0
You need to be logged in to leave comments.
Login now