X-Git-Url: https://git.exim.org/buildfarm-client.git/blobdiff_plain/32d057cf275dde00e46491fd4eb5c43a7c936c5c..550e2278baf9870d8d73666c49f3fe76fd4a47b4:/run_build 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;