[php-src] PHP-8.0: Fix ./makedist wrt. to GH move

From: Date: Tue, 27 Apr 2021 13:52:13 +0000
Subject: [php-src] PHP-8.0: Fix ./makedist wrt. to GH move
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115883@lists.php.net to get a copy of this message
Author: Christoph M. Becker (cmb69) Date: 2021-04-27T15:48:58+02:00 Commit: https://github.com/php/php-src/commit/096f148c6124d5a7ec727d38cca3a8e6a9b419b1 Raw diff: https://github.com/php/php-src/commit/096f148c6124d5a7ec727d38cca3a8e6a9b419b1.diff Fix ./makedist wrt. to GH move We can no longer export from git.php.net, and apparently exporting from Github is not supported. We apply a quick fix to export from the local clone by default, still leaving an option to export from some other repo. This is, unfortunately, a minor BC break in a security release. Co-authored-by: Remi Collet <remi@php.net> Closes GH-6919. Changed paths: M NEWS M makedist Diff: diff --git a/NEWS b/NEWS index 2b0a1848948f..0d39ce99bd60 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? ????, PHP 7.3.28 +- Core: + . Fixed ./makedist wrt. to GH move. (cmb, Remi) + - Imap: . Fixed bug #80710 (imap_mail_compose() header injection). (cmb, Stas) diff --git a/makedist b/makedist index 452768683aa4..c0861b4aab1d 100755 --- a/makedist +++ b/makedist @@ -40,8 +40,10 @@ if test "${2}" -lt "13" -o "${2}" -eq "13" -a "${3}" -lt "5"; then fi IFS="$old_IFS" -if test "x$PHPROOT" = "x"; then - PHPROOT=git@git.php.net:php-src.git; +if test "x$PHPROOT" != "x"; then + remote_option=--remote=$PHPROOT +else + remote_option= fi LT_TARGETS='ltconfig ltmain.sh config.guess config.sub' @@ -72,7 +74,7 @@ fi # Export PHP $ECHO_N "makedist: exporting tag 'php-$VER' from '$PHPROOT'...$ECHO_C" -git archive --format=tar --remote=$PHPROOT refs/tags/php-$VER --prefix=php-$VER/ | (cd $MY_OLDPWD; tar xvf -) || exit 4 +git archive --format=tar $remote_option refs/tags/php-$VER --prefix=php-$VER/ | (cd $MY_OLDPWD; tar xvf -) || exit 4 echo "" cd $DIR || exit 5

« previous php.cvs (#115883) next »