From: Ian Jackson Date: Mon, 26 Oct 2020 12:32:06 +0000 (+0000) Subject: nailing-cargo: Fix linkfarm_depth setting for --just-linkfarm X-Git-Tag: nailing-cargo/1.0.0~38 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d826cfbe8e9a6332d3dcbd90201833ca1ae7dca3;p=nailing-cargo.git nailing-cargo: Fix linkfarm_depth setting for --just-linkfarm Signed-off-by: Ian Jackson --- diff --git a/nailing-cargo b/nailing-cargo index 829f955..f42d326 100755 --- a/nailing-cargo +++ b/nailing-cargo @@ -1022,7 +1022,7 @@ sub parse_args () { $online = $1 eq 'on'; } elsif (m{^--just-linkfarm(?:=(shallow|git|full))?$}) { $just_linkfarm = 1; - $linkfarm_depth = 1 if $1; + $linkfarm_depth = $1 if $1; $cargo_lock_update= 1; # will set $linkfarm_detph to 1 by default } elsif (m{^--linkfarm(?:=(no|shallow|git|full))?$}) { $linkfarm_depth = $1 || 'git';