Browse Source

Merge branch 'maint'

* maint:
  git-send-email: avoid duplicate message-ids
  clone: correctly report http_fetch errors
maint
Junio C Hamano 17 years ago
parent
commit
bd8ff616c9
  1. 11
      git-clone.sh
  2. 6
      git-send-email.perl

11
git-clone.sh

@ -56,11 +56,12 @@ fi @@ -56,11 +56,12 @@ fi

http_fetch () {
# $1 = Remote, $2 = Local
curl -nsfL $curl_extra_args "$1" >"$2" ||
case $? in
126|127) exit ;;
*) return $? ;;
esac
curl -nsfL $curl_extra_args "$1" >"$2"
curl_exit_status=$?
case $curl_exit_status in
126|127) exit ;;
*) return $curl_exit_status ;;
esac
}

clone_dumb_http () {

6
git-send-email.perl

@ -580,7 +580,7 @@ sub send_message @@ -580,7 +580,7 @@ sub send_message
$ccline = "\nCc: $cc";
}
my $sanitized_sender = sanitize_address($sender);
make_message_id();
make_message_id() unless defined($message_id);

my $header = "From: $sanitized_sender
To: $to${ccline}
@ -718,6 +718,9 @@ foreach my $t (@files) { @@ -718,6 +718,9 @@ foreach my $t (@files) {
}
push @xh, $_;
}
elsif (/^Message-Id: (.*)/i) {
$message_id = $1;
}
elsif (!/^Date:\s/ && /^[-A-Za-z]+:\s+\S/) {
push @xh, $_;
}
@ -805,6 +808,7 @@ foreach my $t (@files) { @@ -805,6 +808,7 @@ foreach my $t (@files) {
$references = "$message_id";
}
}
$message_id = undef;
}

if ($compose) {

Loading…
Cancel
Save