##// END OF EJS Templates
git: bumped to latest git version....
super-admin -
r1028:7a402005 default
parent child Browse files
Show More
@@ -9,19 +9,19 b' self: super: {'
9 in
9 in
10 super.lib.overrideDerivation gitWithoutPerl (oldAttrs: {
10 super.lib.overrideDerivation gitWithoutPerl (oldAttrs: {
11
11
12 name = "git-2.30.0";
12 name = "git-2.39.1";
13 src = self.fetchurl {
13 src = self.fetchurl {
14 url = "https://www.kernel.org/pub/software/scm/git/git-2.30.0.tar.xz";
14 url = "https://www.kernel.org/pub/software/scm/git/git-2.39.1.tar.xz";
15 sha256 = "06ad6dylgla34k9am7d5z8y3rryc8ln3ibq5z0d74rcm20hm0wsm";
15 sha256 = "0qf1wly7zagg23svpv533va5v213y7y3lfw76ldkf35k8w48m8s0";
16 };
16 };
17
17
18 # patches come from: https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/version-management/git-and-tools/git
18 # patches come from: https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/version-management/git
19 patches = [
19 patches = [
20 ./patches/git/docbook2texi.patch
20 ./patches/git/docbook2texi.patch
21 ./patches/git/git-send-email-honor-PATH.patch
21 ./patches/git/git-sh-i18n.patch
22 ./patches/git/git-sh-i18n.patch
23 ./patches/git/installCheck-path.patch
22 ./patches/git/ssh-path.patch
24 ./patches/git/ssh-path.patch
23 ./patches/git/git-send-email-honor-PATH.patch
24 ./patches/git/installCheck-path.patch
25 ];
25 ];
26
26
27 #preInstallCheck = oldAttrs.preInstallCheck + ''
27 #preInstallCheck = oldAttrs.preInstallCheck + ''
@@ -35,4 +35,4 b' index 26a2342bea..ceccd67ebb 100644'
35 - $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) gitman.info ;\
35 - $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) gitman.info ;\
36 else \
36 else \
37 echo "No directory found in $(DESTDIR)$(infodir)" >&2 ; \
37 echo "No directory found in $(DESTDIR)$(infodir)" >&2 ; \
38 fi
38 fi No newline at end of file
@@ -1,28 +1,31 b''
1 diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
1 diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
2 index 1afe9fc858..05dd7c3a90 100644
2 index 3db4eab4ba..39bc0e77c9 100644
3 --- a/Documentation/git-send-email.txt
3 --- a/Documentation/git-send-email.txt
4 +++ b/Documentation/git-send-email.txt
4 +++ b/Documentation/git-send-email.txt
5 @@ -215,8 +215,7 @@ a password is obtained using 'git-credential'.
5 @@ -220,9 +220,9 @@ a password is obtained using 'git-credential'.
6 specify a full pathname of a sendmail-like program instead;
6 --smtp-server=<host>::
7 the program must support the `-i` option. Default value can
7 If set, specifies the outgoing SMTP server to use (e.g.
8 be specified by the `sendemail.smtpServer` configuration
8 `smtp.example.com` or a raw IP address). If unspecified, and if
9 - option; the built-in default is to search for `sendmail` in
9 - `--sendmail-cmd` is also unspecified, the default is to search
10 - `/usr/sbin`, `/usr/lib` and $PATH if such program is
10 - for `sendmail` in `/usr/sbin`, `/usr/lib` and $PATH if such a
11 + option; the built-in default is to search in $PATH if such program is
11 - program is available, falling back to `localhost` otherwise.
12 available, falling back to `localhost` otherwise.
12 + `--sendmail-cmd` is also unspecified, the default is to search for
13
13 + `sendmail` in $PATH if such a program is available, falling back to
14 --smtp-server-port=<port>::
14 + `localhost` otherwise.
15 +
16 For backward compatibility, this option can also specify a full pathname
17 of a sendmail-like program instead; the program must support the `-i`
15 diff --git a/git-send-email.perl b/git-send-email.perl
18 diff --git a/git-send-email.perl b/git-send-email.perl
16 index 8eb63b5a2f..74a61d8213 100755
19 index e65d969d0b..508d49483d 100755
17 --- a/git-send-email.perl
20 --- a/git-send-email.perl
18 +++ b/git-send-email.perl
21 +++ b/git-send-email.perl
19 @@ -956,8 +956,7 @@ sub expand_one_alias {
22 @@ -1066,8 +1066,7 @@ sub expand_one_alias {
20 }
23 }
21
24
22 if (!defined $smtp_server) {
25 if (!defined $sendmail_cmd && !defined $smtp_server) {
23 - my @sendmail_paths = qw( /usr/sbin/sendmail /usr/lib/sendmail );
26 - my @sendmail_paths = qw( /usr/sbin/sendmail /usr/lib/sendmail );
24 - push @sendmail_paths, map {"$_/sendmail"} split /:/, $ENV{PATH};
27 - push @sendmail_paths, map {"$_/sendmail"} split /:/, $ENV{PATH};
25 + my @sendmail_paths = map {"$_/sendmail"} split /:/, $ENV{PATH};
28 + my @sendmail_paths = map {"$_/sendmail"} split /:/, $ENV{PATH};
26 foreach (@sendmail_paths) {
29 foreach (@sendmail_paths) {
27 if (-x $_) {
30 if (-x $_) {
28 $smtp_server = $_;
31 $sendmail_cmd = $_; No newline at end of file
@@ -20,4 +20,4 b' index e1d917fd27..e90f8e1414 100644'
20 + export PATH=@gettext@/bin:$PATH
20 + export PATH=@gettext@/bin:$PATH
21 ;;
21 ;;
22 gettext_without_eval_gettext)
22 gettext_without_eval_gettext)
23 # Solaris has a gettext(1) but no eval_gettext(1)
23 # Solaris has a gettext(1) but no eval_gettext(1) No newline at end of file
@@ -10,4 +10,4 b' index 8665b0a9b6..8bb892b1af 100644'
10 + PATH=$GIT_TEST_INSTALLED:$GIT_BUILD_DIR/t/helper:$GIT_BUILD_DIR:$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}
11 GIT_EXEC_PATH=${GIT_TEST_EXEC_PATH:-$GIT_EXEC_PATH}
12 else # normal case, use ../bin-wrappers only unless $with_dashes:
12 else # normal case, use ../bin-wrappers only unless $with_dashes:
13 if test -n "$no_bin_wrappers"
13 if test -n "$no_bin_wrappers" No newline at end of file
@@ -23,4 +23,4 b' index 480a6b30d0..7817204241 100644'
23 + set ssh @ssh@
23 + set ssh @ssh@
24 if {[info exists env(GIT_SSH)]} {
24 if {[info exists env(GIT_SSH)]} {
25 set ssh $env(GIT_SSH)
25 set ssh $env(GIT_SSH)
26 }
26 } No newline at end of file
@@ -1240,7 +1240,7 b' class GitRemote(RemoteBase):'
1240 @reraise_safe_exceptions
1240 @reraise_safe_exceptions
1241 def set_head_ref(self, wire, head_name):
1241 def set_head_ref(self, wire, head_name):
1242 log.debug('Setting refs/head to `%s`', head_name)
1242 log.debug('Setting refs/head to `%s`', head_name)
1243 cmd = ['symbolic-ref', 'HEAD', 'refs/heads/%s' % head_name]
1243 cmd = ['symbolic-ref', '"HEAD"', '"refs/heads/%s"' % head_name]
1244 output, __ = self.run_git_command(wire, cmd)
1244 output, __ = self.run_git_command(wire, cmd)
1245 return [head_name] + output.splitlines()
1245 return [head_name] + output.splitlines()
1246
1246
@@ -577,8 +577,8 b' def git_post_receive(unused_repo_path, r'
577 try:
577 try:
578 subprocessio.run_command(cmd, env=os.environ.copy())
578 subprocessio.run_command(cmd, env=os.environ.copy())
579 except Exception:
579 except Exception:
580 cmd = [settings.GIT_EXECUTABLE, 'symbolic-ref', 'HEAD',
580 cmd = [settings.GIT_EXECUTABLE, 'symbolic-ref', '"HEAD"',
581 'refs/heads/%s' % push_ref['name']]
581 '"refs/heads/%s"' % push_ref['name']]
582 print("Setting default branch to %s" % push_ref['name'])
582 print("Setting default branch to %s" % push_ref['name'])
583 subprocessio.run_command(cmd, env=os.environ.copy())
583 subprocessio.run_command(cmd, env=os.environ.copy())
584
584
General Comments 0
You need to be logged in to leave comments. Login now