From: Heiko Schlittermann (HS12-RIPE) Date: Sun, 6 Nov 2016 22:33:24 +0000 (+0100) Subject: cd to $RealBin instead of git -C X-Git-Url: https://git.exim.org/buildfarm-client.git/commitdiff_plain/550e2278baf9870d8d73666c49f3fe76fd4a47b4 cd to $RealBin instead of git -C Older gits don't support -C --- diff --git a/run_build b/run_build index fe3ea92..ef80039 100755 --- a/run_build +++ b/run_build @@ -43,7 +43,7 @@ use File::Copy; use File::Basename; use File::Temp; use File::Spec; -use FindBin qw'$Bin'; +use FindBin qw'$RealBin'; use IO::Handle; use POSIX qw(:signal_h strftime); use Data::Dumper; @@ -1452,9 +1452,9 @@ sub get_script_config_dump delete $conf->{secret}; if ($conf->{scm} eq 'git') { - chomp($conf->{farm}{revision} = `git -C $Bin describe --tags --always --dirty=+`); + chomp($conf->{farm}{revision} = `cd $RealBin && git describe --tags --always --dirty=+`); $conf->{farm}{cwd} = getcwd(); - $conf->{farm}{bindir} = $Bin; + $conf->{farm}{bindir} = $RealBin; } $Data::Dumper::Sortkeys = 1;