git: 2.19.2 -> 2.21.0

+40 -107
+2 -2
pkgs/applications/version-management/git-and-tools/git/default.nix
··· 20 assert svnSupport -> perlSupport; 21 22 let 23 - version = "2.19.2"; 24 svn = subversionClient.override { perlBindings = perlSupport; }; 25 in 26 ··· 29 30 src = fetchurl { 31 url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"; 32 - sha256 = "1scbggzghkzzfqg4ky3qh7h9w87c3zya4ls5disz7dbx56is7sgw"; 33 }; 34 35 outputs = [ "out" ] ++ stdenv.lib.optional perlSupport "gitweb";
··· 20 assert svnSupport -> perlSupport; 21 22 let 23 + version = "2.21.0"; 24 svn = subversionClient.override { perlBindings = perlSupport; }; 25 in 26 ··· 29 30 src = fetchurl { 31 url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"; 32 + sha256 = "0a0d0b07rmvs985zpndxxy0vzr0vq53kq5kyd68iv6gf8gkirjwc"; 33 }; 34 35 outputs = [ "out" ] ++ stdenv.lib.optional perlSupport "gitweb";
+4 -3
pkgs/applications/version-management/git-and-tools/git/docbook2texi.patch
··· 3 node names). 4 5 diff --git a/Documentation/Makefile b/Documentation/Makefile 6 --- a/Documentation/Makefile 7 +++ b/Documentation/Makefile 8 - @@ -122,7 +122,7 @@ 9 10 MAKEINFO = makeinfo 11 INSTALL_INFO = install-info ··· 14 DBLATEX = dblatex 15 ASCIIDOC_DBLATEX_DIR = /etc/asciidoc/dblatex 16 DBLATEX_COMMON = -p $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.xsl -s $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.sty 17 - @@ -240,7 +240,7 @@ 18 man5: $(DOC_MAN5) 19 man7: $(DOC_MAN7) 20 ··· 23 24 pdf: user-manual.pdf 25 26 - @@ -256,10 +256,9 @@ 27 28 install-info: info 29 $(INSTALL) -d -m 755 $(DESTDIR)$(infodir)
··· 3 node names). 4 5 diff --git a/Documentation/Makefile b/Documentation/Makefile 6 + index 26a2342bea..ceccd67ebb 100644 7 --- a/Documentation/Makefile 8 +++ b/Documentation/Makefile 9 + @@ -132,7 +132,7 @@ HTML_REPO = ../../git-htmldocs 10 11 MAKEINFO = makeinfo 12 INSTALL_INFO = install-info ··· 15 DBLATEX = dblatex 16 ASCIIDOC_DBLATEX_DIR = /etc/asciidoc/dblatex 17 DBLATEX_COMMON = -p $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.xsl -s $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.sty 18 + @@ -250,7 +250,7 @@ man1: $(DOC_MAN1) 19 man5: $(DOC_MAN5) 20 man7: $(DOC_MAN7) 21 ··· 24 25 pdf: user-manual.pdf 26 27 + @@ -266,10 +266,9 @@ install-man: man 28 29 install-info: info 30 $(INSTALL) -d -m 755 $(DESTDIR)$(infodir)
+6 -4
pkgs/applications/version-management/git-and-tools/git/git-send-email-honor-PATH.patch
··· 1 diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt 2 --- a/Documentation/git-send-email.txt 3 +++ b/Documentation/git-send-email.txt 4 - @@ -208,8 +208,7 @@ a password is obtained using 'git-credential'. 5 specify a full pathname of a sendmail-like program instead; 6 the program must support the `-i` option. Default value can 7 be specified by the `sendemail.smtpServer` configuration ··· 9 - `/usr/sbin`, `/usr/lib` and $PATH if such program is 10 + option; the built-in default is to search in $PATH if such program is 11 available, falling back to `localhost` otherwise. 12 - 13 --smtp-server-port=<port>:: 14 diff --git a/git-send-email.perl b/git-send-email.perl 15 --- a/git-send-email.perl 16 +++ b/git-send-email.perl 17 - @@ -944,8 +944,7 @@ if (defined $reply_to) { 18 } 19 - 20 if (!defined $smtp_server) { 21 - my @sendmail_paths = qw( /usr/sbin/sendmail /usr/lib/sendmail ); 22 - push @sendmail_paths, map {"$_/sendmail"} split /:/, $ENV{PATH};
··· 1 diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt 2 + index 1afe9fc858..05dd7c3a90 100644 3 --- a/Documentation/git-send-email.txt 4 +++ b/Documentation/git-send-email.txt 5 + @@ -215,8 +215,7 @@ a password is obtained using 'git-credential'. 6 specify a full pathname of a sendmail-like program instead; 7 the program must support the `-i` option. Default value can 8 be specified by the `sendemail.smtpServer` configuration ··· 10 - `/usr/sbin`, `/usr/lib` and $PATH if such program is 11 + option; the built-in default is to search in $PATH if such program is 12 available, falling back to `localhost` otherwise. 13 + 14 --smtp-server-port=<port>:: 15 diff --git a/git-send-email.perl b/git-send-email.perl 16 + index 8eb63b5a2f..74a61d8213 100755 17 --- a/git-send-email.perl 18 +++ b/git-send-email.perl 19 + @@ -956,8 +956,7 @@ sub expand_one_alias { 20 } 21 + 22 if (!defined $smtp_server) { 23 - my @sendmail_paths = qw( /usr/sbin/sendmail /usr/lib/sendmail ); 24 - push @sendmail_paths, map {"$_/sendmail"} split /:/, $ENV{PATH};
+19 -90
pkgs/applications/version-management/git-and-tools/git/git-sh-i18n.patch
··· 1 --- a/git-sh-i18n.sh 2 +++ 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 18 -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. 35 - . 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 () {
··· 1 + diff --git a/git-sh-i18n.sh b/git-sh-i18n.sh 2 + index e1d917fd27..e90f8e1414 100644 3 --- a/git-sh-i18n.sh 4 +++ b/git-sh-i18n.sh 5 + @@ -26,7 +26,7 @@ then 6 + elif test -n "$GIT_INTERNAL_GETTEXT_TEST_FALLBACKS" 7 + then 8 + : no probing necessary 9 -elif type gettext.sh >/dev/null 2>&1 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. 18 - . gettext.sh 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)
+4 -3
pkgs/applications/version-management/git-and-tools/git/installCheck-path.patch
··· 1 diff --git a/t/test-lib.sh b/t/test-lib.sh 2 --- a/t/test-lib.sh 3 +++ b/t/test-lib.sh 4 - @@ -923,7 +923,7 @@ 5 then 6 GIT_EXEC_PATH=$($GIT_TEST_INSTALLED/git --exec-path) || 7 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:$GIT_BUILD_DIR:$PATH 10 GIT_EXEC_PATH=${GIT_TEST_EXEC_PATH:-$GIT_EXEC_PATH} 11 else # normal case, use ../bin-wrappers only unless $with_dashes: 12 - git_bin_dir="$GIT_BUILD_DIR/bin-wrappers"
··· 1 diff --git a/t/test-lib.sh b/t/test-lib.sh 2 + index 8665b0a9b6..8bb892b1af 100644 3 --- a/t/test-lib.sh 4 +++ b/t/test-lib.sh 5 + @@ -1227,7 +1227,7 @@ elif test -n "$GIT_TEST_INSTALLED" 6 then 7 GIT_EXEC_PATH=$($GIT_TEST_INSTALLED/git --exec-path) || 8 error "Cannot run git from $GIT_TEST_INSTALLED." 9 + - PATH=$GIT_TEST_INSTALLED:$GIT_BUILD_DIR/t/helper:$PATH 10 + PATH=$GIT_TEST_INSTALLED:$GIT_BUILD_DIR/t/helper:$GIT_BUILD_DIR:$PATH 11 GIT_EXEC_PATH=${GIT_TEST_EXEC_PATH:-$GIT_EXEC_PATH} 12 else # normal case, use ../bin-wrappers only unless $with_dashes: 13 + if test -n "$no_bin_wrappers"
+5 -5
pkgs/applications/version-management/git-and-tools/git/ssh-path.patch
··· 1 diff --git a/connect.c b/connect.c 2 - index c3a014c5b..fbca3262b 100644 3 --- a/connect.c 4 +++ b/connect.c 5 - @@ -1010,7 +1010,7 @@ static void fill_ssh_args(struct child_process *conn, const char *ssh_host, 6 - 7 ssh = getenv("GIT_SSH"); 8 if (!ssh) 9 - ssh = "ssh"; 10 + ssh = "@ssh@"; 11 variant = determine_ssh_variant(ssh, 0); 12 } 13 - 14 diff --git a/git-gui/lib/remote_add.tcl b/git-gui/lib/remote_add.tcl 15 - index 480a6b30d..781720424 100644 16 --- a/git-gui/lib/remote_add.tcl 17 +++ b/git-gui/lib/remote_add.tcl 18 @@ -139,7 +139,7 @@ method _add {} {
··· 1 diff --git a/connect.c b/connect.c 2 + index 4813f005ab..b3f12f3268 100644 3 --- a/connect.c 4 +++ b/connect.c 5 + @@ -1183,7 +1183,7 @@ static void fill_ssh_args(struct child_process *conn, const char *ssh_host, 6 + 7 ssh = getenv("GIT_SSH"); 8 if (!ssh) 9 - ssh = "ssh"; 10 + ssh = "@ssh@"; 11 variant = determine_ssh_variant(ssh, 0); 12 } 13 + 14 diff --git a/git-gui/lib/remote_add.tcl b/git-gui/lib/remote_add.tcl 15 + index 480a6b30d0..7817204241 100644 16 --- a/git-gui/lib/remote_add.tcl 17 +++ b/git-gui/lib/remote_add.tcl 18 @@ -139,7 +139,7 @@ method _add {} {