Older gits don't support -C
use File::Basename;
use File::Temp;
use File::Spec;
use File::Basename;
use File::Temp;
use File::Spec;
+use FindBin qw'$RealBin';
use IO::Handle;
use POSIX qw(:signal_h strftime);
use Data::Dumper;
use IO::Handle;
use POSIX qw(:signal_h strftime);
use Data::Dumper;
delete $conf->{secret};
if ($conf->{scm} eq 'git') {
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}{cwd} = getcwd();
- $conf->{farm}{bindir} = $Bin;
+ $conf->{farm}{bindir} = $RealBin;
}
$Data::Dumper::Sortkeys = 1;
}
$Data::Dumper::Sortkeys = 1;