summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-03 08:40:34 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-03 08:40:34 -0700
commitc383a31cd0c75ade6df76f69240893f85b6710de (patch)
treedb8b140529c9a1d1b60667a3fce972606e7b0753
parent7c38c8fe01a615b2c12a18673ffbe29a643149d7 (diff)
downloadp5-Git-Annex-c383a31cd0c75ade6df76f69240893f85b6710de.tar.gz
die if can't get annex UUID
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rwxr-xr-xbin/annex-review-unused8
1 files changed, 7 insertions, 1 deletions
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;