1
0
Fork 0
mirror of https://github.com/NixOS/hydra.git synced 2024-10-18 17:02:28 -04:00

GitInput: deal with undefined deepClone

This commit is contained in:
Graham Christensen 2021-10-19 21:37:36 -04:00
parent 2ee584e7ae
commit 01112e9bd3

View file

@ -34,7 +34,7 @@ sub _parseValue {
my $start_options = 3; my $start_options = 3;
# if deepClone has "=" then is considered an option # if deepClone has "=" then is considered an option
# and not the enabling of deepClone # and not the enabling of deepClone
if (index($deepClone, "=") != -1) { if (defined($deepClone) && index($deepClone, "=") != -1) {
undef $deepClone; undef $deepClone;
$start_options = 2; $start_options = 2;
} }