From c383a31cd0c75ade6df76f69240893f85b6710de Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 3 Feb 2020 08:40:34 -0700 Subject: die if can't get annex UUID Signed-off-by: Sean Whitton --- bin/annex-review-unused | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/annex-review-unused b/bin/annex-review-unused index d9eef6b..3cc2671 100755 --- a/bin/annex-review-unused +++ b/bin/annex-review-unused @@ -50,7 +50,13 @@ GetOptions 'just-print' => \$just_print; if ($from_arg) { $unused_opts{from} = $dropunused_args{from} = $from_arg; - ($uuid) = $annex->git->config("remote." . $from_arg . ".annex-uuid"); + #<<< + try { + ($uuid) = $annex->git->config("remote." . $from_arg . ".annex-uuid"); + } catch { + die "couldn't determine an annex UUID for $from_arg remote"; + }; + #>>> } $unused_opts{used_refspec} = $used_refspec_arg if $used_refspec_arg; -- cgit v1.2.3