use File::Basename;
use File::Temp;
use File::Spec;
+use FindBin qw'$Bin';
use IO::Handle;
use POSIX qw(:signal_h strftime);
use Data::Dumper;
orig_env => $orig_env,
};
delete $conf->{secret};
+
+ if ($conf->{scm} eq 'git') {
+ chomp($conf->{farm}{revision} = `git -C $Bin describe --tags --always --dirty=+`);
+ $conf->{farm}{cwd} = getcwd();
+ $conf->{farm}{bindir} = $Bin;
+ }
+
$Data::Dumper::Sortkeys = 1;
return Data::Dumper->Dump([$conf],['Script_Config']);
}