Show More
@@ -1,71 +1,71 b'' | |||
|
1 | 1 | self: super: { |
|
2 | 2 | |
|
3 | 3 | # bump GIT version |
|
4 | 4 | git = super.lib.overrideDerivation super.git (oldAttrs: { |
|
5 |
name = "git-2. |
|
|
5 | name = "git-2.22.0"; | |
|
6 | 6 | src = self.fetchurl { |
|
7 |
url = "https://www.kernel.org/pub/software/scm/git/git-2. |
|
|
8 | sha256 = "1scbggzghkzzfqg4ky3qh7h9w87c3zya4ls5disz7dbx56is7sgw"; | |
|
7 | url = "https://www.kernel.org/pub/software/scm/git/git-2.22.0.tar.xz"; | |
|
8 | sha256 = "17zj6jwx3s6bybd290f1mj5iym1r64560rmnf0p63x4akxclp7hm"; | |
|
9 | 9 | }; |
|
10 | 10 | |
|
11 | 11 | # patches come from: https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/version-management/git-and-tools/git |
|
12 | 12 | patches = [ |
|
13 | 13 | ./patches/git/docbook2texi.patch |
|
14 | 14 | ./patches/git/git-sh-i18n.patch |
|
15 | 15 | ./patches/git/ssh-path.patch |
|
16 | 16 | ./patches/git/git-send-email-honor-PATH.patch |
|
17 | 17 | ./patches/git/installCheck-path.patch |
|
18 | 18 | ]; |
|
19 | 19 | |
|
20 | 20 | }); |
|
21 | 21 | |
|
22 | 22 | libgit2rc = super.lib.overrideDerivation super.libgit2 (oldAttrs: { |
|
23 | 23 | name = "libgit2-0.28.2"; |
|
24 | 24 | version = "0.28.2"; |
|
25 | 25 | |
|
26 | 26 | src = self.fetchFromGitHub { |
|
27 | 27 | owner = "libgit2"; |
|
28 | 28 | repo = "libgit2"; |
|
29 | 29 | rev = "v0.28.2"; |
|
30 | 30 | sha256 = "0cm8fvs05rj0baigs2133q5a0sm3pa234y8h6hmwhl2bz9xq3k4b"; |
|
31 | 31 | }; |
|
32 | 32 | |
|
33 | 33 | cmakeFlags = [ "-DTHREADSAFE=ON" "-DUSE_HTTPS=no"]; |
|
34 | 34 | |
|
35 | 35 | buildInputs = [ |
|
36 | 36 | super.zlib |
|
37 | 37 | super.libssh2 |
|
38 | 38 | super.openssl |
|
39 | 39 | super.curl |
|
40 | 40 | ]; |
|
41 | 41 | |
|
42 | 42 | |
|
43 | 43 | }); |
|
44 | 44 | |
|
45 | 45 | # Override subversion derivation to |
|
46 | 46 | # - activate python bindings |
|
47 | 47 | subversion = |
|
48 | 48 | let |
|
49 | 49 | subversionWithPython = super.subversion.override { |
|
50 | 50 | httpSupport = true; |
|
51 | 51 | pythonBindings = true; |
|
52 | 52 | python = self.python27Packages.python; |
|
53 | 53 | }; |
|
54 | 54 | in |
|
55 | 55 | super.lib.overrideDerivation subversionWithPython (oldAttrs: { |
|
56 | 56 | name = "subversion-1.10.2"; |
|
57 | 57 | src = self.fetchurl { |
|
58 | 58 | url = "https://archive.apache.org/dist/subversion/subversion-1.10.2.tar.gz"; |
|
59 | 59 | sha256 = "0xv5z2bg0lw7057g913yc13f60nfj257wvmsq22pr33m4syf26sg"; |
|
60 | 60 | }; |
|
61 | 61 | |
|
62 | 62 | ## use internal lz4/utf8proc because it is stable and shipped with SVN |
|
63 | 63 | configureFlags = oldAttrs.configureFlags ++ [ |
|
64 | 64 | " --with-lz4=internal" |
|
65 | 65 | " --with-utf8proc=internal" |
|
66 | 66 | ]; |
|
67 | 67 | |
|
68 | 68 | }); |
|
69 | 69 | |
|
70 | 70 | |
|
71 | 71 | } |
@@ -1,37 +1,38 b'' | |||
|
1 | 1 | This patch does two things: (1) use the right name for `docbook2texi', |
|
2 | 2 | and (2) make sure `gitman.info' isn't produced since it's broken (duplicate |
|
3 | 3 | node names). |
|
4 | 4 | |
|
5 | 5 | diff --git a/Documentation/Makefile b/Documentation/Makefile |
|
6 | index 26a2342bea..ceccd67ebb 100644 | |
|
6 | 7 | --- a/Documentation/Makefile |
|
7 | 8 | +++ b/Documentation/Makefile |
|
8 | @@ -122,7 +122,7 @@ | |
|
9 | @@ -132,7 +132,7 @@ HTML_REPO = ../../git-htmldocs | |
|
9 | 10 | |
|
10 | 11 | MAKEINFO = makeinfo |
|
11 | 12 | INSTALL_INFO = install-info |
|
12 | 13 | -DOCBOOK2X_TEXI = docbook2x-texi |
|
13 | 14 | +DOCBOOK2X_TEXI = docbook2texi |
|
14 | 15 | DBLATEX = dblatex |
|
15 | 16 | ASCIIDOC_DBLATEX_DIR = /etc/asciidoc/dblatex |
|
16 | 17 | DBLATEX_COMMON = -p $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.xsl -s $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.sty |
|
17 |
@@ -2 |
|
|
18 | @@ -250,7 +250,7 @@ man1: $(DOC_MAN1) | |
|
18 | 19 | man5: $(DOC_MAN5) |
|
19 | 20 | man7: $(DOC_MAN7) |
|
20 | 21 | |
|
21 | 22 | -info: git.info gitman.info |
|
22 | 23 | +info: git.info |
|
23 | 24 | |
|
24 | 25 | pdf: user-manual.pdf |
|
25 | 26 | |
|
26 |
@@ -2 |
|
|
27 | @@ -266,10 +266,9 @@ install-man: man | |
|
27 | 28 | |
|
28 | 29 | install-info: info |
|
29 | 30 | $(INSTALL) -d -m 755 $(DESTDIR)$(infodir) |
|
30 | 31 | - $(INSTALL) -m 644 git.info gitman.info $(DESTDIR)$(infodir) |
|
31 | 32 | + $(INSTALL) -m 644 git.info $(DESTDIR)$(infodir) |
|
32 | 33 | if test -r $(DESTDIR)$(infodir)/dir; then \ |
|
33 | 34 | $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) git.info ;\ |
|
34 | 35 | - $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) gitman.info ;\ |
|
35 | 36 | else \ |
|
36 | 37 | echo "No directory found in $(DESTDIR)$(infodir)" >&2 ; \ |
|
37 | 38 | fi |
@@ -1,26 +1,28 b'' | |||
|
1 | 1 | diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt |
|
2 | index 1afe9fc858..05dd7c3a90 100644 | |
|
2 | 3 | --- a/Documentation/git-send-email.txt |
|
3 | 4 | +++ b/Documentation/git-send-email.txt |
|
4 |
@@ -2 |
|
|
5 | @@ -215,8 +215,7 @@ a password is obtained using 'git-credential'. | |
|
5 | 6 | specify a full pathname of a sendmail-like program instead; |
|
6 | 7 | the program must support the `-i` option. Default value can |
|
7 | 8 | be specified by the `sendemail.smtpServer` configuration |
|
8 | 9 | - option; the built-in default is to search for `sendmail` in |
|
9 | 10 | - `/usr/sbin`, `/usr/lib` and $PATH if such program is |
|
10 | 11 | + option; the built-in default is to search in $PATH if such program is |
|
11 | 12 | available, falling back to `localhost` otherwise. |
|
12 | 13 | |
|
13 | 14 | --smtp-server-port=<port>:: |
|
14 | 15 | diff --git a/git-send-email.perl b/git-send-email.perl |
|
16 | index 8eb63b5a2f..74a61d8213 100755 | |
|
15 | 17 | --- a/git-send-email.perl |
|
16 | 18 | +++ b/git-send-email.perl |
|
17 | @@ -944,8 +944,7 @@ if (defined $reply_to) { | |
|
19 | @@ -956,8 +956,7 @@ sub expand_one_alias { | |
|
18 | 20 | } |
|
19 | 21 | |
|
20 | 22 | if (!defined $smtp_server) { |
|
21 | 23 | - my @sendmail_paths = qw( /usr/sbin/sendmail /usr/lib/sendmail ); |
|
22 | 24 | - push @sendmail_paths, map {"$_/sendmail"} split /:/, $ENV{PATH}; |
|
23 | 25 | + my @sendmail_paths = map {"$_/sendmail"} split /:/, $ENV{PATH}; |
|
24 | 26 | foreach (@sendmail_paths) { |
|
25 | 27 | if (-x $_) { |
|
26 | 28 | $smtp_server = $_; |
@@ -1,94 +1,23 b'' | |||
|
1 | diff --git a/git-sh-i18n.sh b/git-sh-i18n.sh | |
|
2 | index e1d917fd27..e90f8e1414 100644 | |
|
1 | 3 | --- a/git-sh-i18n.sh |
|
2 | 4 | +++ b/git-sh-i18n.sh |
|
3 | @@ -15,87 +15,11 @@ | |
|
4 | fi | |
|
5 | export TEXTDOMAINDIR | |
|
6 | ||
|
7 | -# First decide what scheme to use... | |
|
8 | -GIT_INTERNAL_GETTEXT_SH_SCHEME=fallthrough | |
|
9 | -if test -n "$GIT_GETTEXT_POISON" | |
|
10 | -then | |
|
11 | - GIT_INTERNAL_GETTEXT_SH_SCHEME=poison | |
|
12 | -elif test -n "@@USE_GETTEXT_SCHEME@@" | |
|
13 | -then | |
|
14 | - GIT_INTERNAL_GETTEXT_SH_SCHEME="@@USE_GETTEXT_SCHEME@@" | |
|
15 | -elif test -n "$GIT_INTERNAL_GETTEXT_TEST_FALLBACKS" | |
|
16 | -then | |
|
17 | - : no probing necessary | |
|
5 | @@ -26,7 +26,7 @@ then | |
|
6 | elif test -n "$GIT_INTERNAL_GETTEXT_TEST_FALLBACKS" | |
|
7 | then | |
|
8 | : no probing necessary | |
|
18 | 9 | -elif type gettext.sh >/dev/null 2>&1 |
|
19 | -then | |
|
20 | - # GNU libintl's gettext.sh | |
|
21 | - GIT_INTERNAL_GETTEXT_SH_SCHEME=gnu | |
|
22 | -elif test "$(gettext -h 2>&1)" = "-h" | |
|
23 | -then | |
|
24 | - # gettext binary exists but no gettext.sh. likely to be a gettext | |
|
25 | - # binary on a Solaris or something that is not GNU libintl and | |
|
26 | - # lack eval_gettext. | |
|
27 | - GIT_INTERNAL_GETTEXT_SH_SCHEME=gettext_without_eval_gettext | |
|
28 | -fi | |
|
29 | -export GIT_INTERNAL_GETTEXT_SH_SCHEME | |
|
30 | - | |
|
31 | -# ... and then follow that decision. | |
|
32 | -case "$GIT_INTERNAL_GETTEXT_SH_SCHEME" in | |
|
33 | -gnu) | |
|
34 | - # Use libintl's gettext.sh, or fall back to English if we can't. | |
|
10 | +elif type @gettext@/bin/gettext.sh >/dev/null 2>&1 | |
|
11 | then | |
|
12 | # GNU libintl's gettext.sh | |
|
13 | GIT_INTERNAL_GETTEXT_SH_SCHEME=gnu | |
|
14 | @@ -43,7 +43,8 @@ export GIT_INTERNAL_GETTEXT_SH_SCHEME | |
|
15 | case "$GIT_INTERNAL_GETTEXT_SH_SCHEME" in | |
|
16 | gnu) | |
|
17 | # Use libintl's gettext.sh, or fall back to English if we can't. | |
|
35 | 18 | - . gettext.sh |
|
36 | - ;; | |
|
37 | -gettext_without_eval_gettext) | |
|
38 | - # Solaris has a gettext(1) but no eval_gettext(1) | |
|
39 | - eval_gettext () { | |
|
40 | - gettext "$1" | ( | |
|
41 | - export PATH $(git sh-i18n--envsubst --variables "$1"); | |
|
42 | - git sh-i18n--envsubst "$1" | |
|
43 | - ) | |
|
44 | - } | |
|
45 | - | |
|
46 | - eval_ngettext () { | |
|
47 | - ngettext "$1" "$2" "$3" | ( | |
|
48 | - export PATH $(git sh-i18n--envsubst --variables "$2"); | |
|
49 | - git sh-i18n--envsubst "$2" | |
|
50 | - ) | |
|
51 | - } | |
|
52 | - ;; | |
|
53 | -poison) | |
|
54 | - # Emit garbage so that tests that incorrectly rely on translatable | |
|
55 | - # strings will fail. | |
|
56 | - gettext () { | |
|
57 | - printf "%s" "# GETTEXT POISON #" | |
|
58 | - } | |
|
59 | - | |
|
60 | - eval_gettext () { | |
|
61 | - printf "%s" "# GETTEXT POISON #" | |
|
62 | - } | |
|
63 | - | |
|
64 | - eval_ngettext () { | |
|
65 | - printf "%s" "# GETTEXT POISON #" | |
|
66 | - } | |
|
67 | - ;; | |
|
68 | -*) | |
|
69 | - gettext () { | |
|
70 | - printf "%s" "$1" | |
|
71 | - } | |
|
72 | - | |
|
73 | - eval_gettext () { | |
|
74 | - printf "%s" "$1" | ( | |
|
75 | - export PATH $(git sh-i18n--envsubst --variables "$1"); | |
|
76 | - git sh-i18n--envsubst "$1" | |
|
77 | - ) | |
|
78 | - } | |
|
79 | +# GNU gettext | |
|
80 | +export GIT_INTERNAL_GETTEXT_SH_SCHEME=gnu | |
|
81 | +export PATH=@gettext@/bin:$PATH | |
|
82 | ||
|
83 | - eval_ngettext () { | |
|
84 | - (test "$3" = 1 && printf "%s" "$1" || printf "%s" "$2") | ( | |
|
85 | - export PATH $(git sh-i18n--envsubst --variables "$2"); | |
|
86 | - git sh-i18n--envsubst "$2" | |
|
87 | - ) | |
|
88 | - } | |
|
89 | - ;; | |
|
90 | -esac | |
|
91 | +. @gettext@/bin/gettext.sh | |
|
92 | ||
|
93 | # Git-specific wrapper functions | |
|
94 | gettextln () { | |
|
19 | + . @gettext@/bin/gettext.sh | |
|
20 | + export PATH=@gettext@/bin:$PATH | |
|
21 | ;; | |
|
22 | gettext_without_eval_gettext) | |
|
23 | # Solaris has a gettext(1) but no eval_gettext(1) |
@@ -1,12 +1,13 b'' | |||
|
1 | 1 | diff --git a/t/test-lib.sh b/t/test-lib.sh |
|
2 | index 8665b0a9b6..8bb892b1af 100644 | |
|
2 | 3 | --- a/t/test-lib.sh |
|
3 | 4 | +++ b/t/test-lib.sh |
|
4 | @@ -923,7 +923,7 @@ | |
|
5 | @@ -1227,7 +1227,7 @@ elif test -n "$GIT_TEST_INSTALLED" | |
|
5 | 6 | then |
|
6 | 7 | GIT_EXEC_PATH=$($GIT_TEST_INSTALLED/git --exec-path) || |
|
7 | 8 | error "Cannot run git from $GIT_TEST_INSTALLED." |
|
8 | - PATH=$GIT_TEST_INSTALLED:$GIT_BUILD_DIR:$PATH | |
|
9 | - PATH=$GIT_TEST_INSTALLED:$GIT_BUILD_DIR/t/helper:$PATH | |
|
9 | 10 | + PATH=$GIT_TEST_INSTALLED:$GIT_BUILD_DIR/t/helper:$GIT_BUILD_DIR:$PATH |
|
10 | 11 | GIT_EXEC_PATH=${GIT_TEST_EXEC_PATH:-$GIT_EXEC_PATH} |
|
11 | 12 | else # normal case, use ../bin-wrappers only unless $with_dashes: |
|
12 | git_bin_dir="$GIT_BUILD_DIR/bin-wrappers" | |
|
13 | if test -n "$no_bin_wrappers" |
@@ -1,26 +1,26 b'' | |||
|
1 | 1 | diff --git a/connect.c b/connect.c |
|
2 |
index |
|
|
2 | index 4813f005ab..b3f12f3268 100644 | |
|
3 | 3 | --- a/connect.c |
|
4 | 4 | +++ b/connect.c |
|
5 |
@@ -1 |
|
|
5 | @@ -1183,7 +1183,7 @@ static void fill_ssh_args(struct child_process *conn, const char *ssh_host, | |
|
6 | 6 | |
|
7 | 7 | ssh = getenv("GIT_SSH"); |
|
8 | 8 | if (!ssh) |
|
9 | 9 | - ssh = "ssh"; |
|
10 | 10 | + ssh = "@ssh@"; |
|
11 | 11 | variant = determine_ssh_variant(ssh, 0); |
|
12 | 12 | } |
|
13 | 13 | |
|
14 | 14 | diff --git a/git-gui/lib/remote_add.tcl b/git-gui/lib/remote_add.tcl |
|
15 | index 480a6b30d..781720424 100644 | |
|
15 | index 480a6b30d0..7817204241 100644 | |
|
16 | 16 | --- a/git-gui/lib/remote_add.tcl |
|
17 | 17 | +++ b/git-gui/lib/remote_add.tcl |
|
18 | 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