git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/5] git-svn: allow test setup script to support PERL env. var

From
Sam Vilain <sam.vilain@catalyst.net.nz>
Date
Oct 20, 2009, 02:42 UTC
Message-ID
<1256006523-5493-3-git-send-email-sam.vilain@catalyst.net.nz>
In-Reply-To
<1256006523-5493-2-git-send-email-sam.vilain@catalyst.net.nz>

Possibly the 'perl' in the PATH is not the one to be used for the tests; let PERL set in the environment select it.

Signed-off-by: Sam Vilain <sam.vilain@catalyst.net.nz>
---
  A little unrelated nit
 t/lib-git-svn.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/t/lib-git-svn.sh b/t/lib-git-svn.sh
index fd8631f..0f7f35c 100644
--- a/t/lib-git-svn.sh
+++ b/t/lib-git-svn.sh
@@ -16,6 +16,7 @@ fi
 GIT_DIR=$PWD/.git
 GIT_SVN_DIR=$GIT_DIR/svn/refs/remotes/git-svn
 SVN_TREE=$GIT_SVN_DIR/svn-tree
+PERL=${PERL:-perl}
 
 svn >/dev/null 2>&1
 if test $? -ne 1
@@ -29,7 +30,7 @@ export svnrepo
 svnconf=$PWD/svnconf
 export svnconf
 
-perl -w -e "
+$PERL -w -e "
 use SVN::Core;
 use SVN::Repos;
 \$SVN::Core::VERSION gt '1.1.0' or exit(42);
@@ -130,7 +131,7 @@ stop_httpd () {
 }
 
 convert_to_rev_db () {
-	perl -w -- - "$@" <<\EOF
+	$PERL -w -- - "$@" <<\EOF
 use strict;
 @ARGV == 2 or die "Usage: convert_to_rev_db <input> <output>";
 open my $wr, '+>', $ARGV[1] or die "$!: couldn't open: $ARGV[1]";
-- 
1.6.3.3
Previous: Sam VilainNext: Sam Vilain
Message 3 of 12 in “git-svn: add support for merges during 'git svn fetch'”
  1. Sam VilainOct 20, 2009
  2. 1/5 git-svn: add test data for SVK merge, with script.Sam Vilain, Oct 20, 2009
  3. 2/5 git-svn: allow test setup script to support PERL env. varSam Vilain, Oct 20, 2009
  4. 3/5 git-svn: convert SVK merge tickets to extra parentsSam Vilain, Oct 20, 2009
  5. 4/5 git-svn: add test data for SVN 1.5+ merge, with script.Sam Vilain, Oct 20, 2009
  6. 5/5 git-svn: convert SVN 1.5+ / svnmerge.py svn:mergeinfo props to parentsSam Vilain, Oct 20, 2009
  7. Sam VilainOct 20, 2009
  8. Junio C HamanoOct 20, 2009
  9. Eric WongOct 20, 2009
  10. Nanako ShiraishiOct 27, 2009
  11. Eric WongOct 27, 2009
  12. Junio C HamanoOct 28, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.