test to see if we are getting git

This commit is contained in:
Aaron Bieber 2023-05-22 20:42:14 -06:00
parent a05b17b961
commit 27f7f9bc90
No known key found for this signature in database

View File

@ -19,6 +19,7 @@ my $repo_dir = "/var/lib/pr-status/nixpkgs";
$ENV{"GIT_CONFIG_SYSTEM"} = ""; # Ignore insteadOf rules $ENV{"GIT_CONFIG_SYSTEM"} = ""; # Ignore insteadOf rules
$ENV{"HOME"} = "/tmp"; # Ignore ~/.netrc $ENV{"HOME"} = "/tmp"; # Ignore ~/.netrc
warn Git::exec_path();
Git::command_noisy( 'clone', 'https://github.com/nixos/nixpkgs', $repo_dir ) Git::command_noisy( 'clone', 'https://github.com/nixos/nixpkgs', $repo_dir )
if !-e $repo_dir; if !-e $repo_dir;
my $repo = Git->repository( Directory => $repo_dir ); my $repo = Git->repository( Directory => $repo_dir );