diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-02-03 08:40:34 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-02-03 08:40:34 -0700 |
commit | c383a31cd0c75ade6df76f69240893f85b6710de (patch) | |
tree | db8b140529c9a1d1b60667a3fce972606e7b0753 /bin | |
parent | 7c38c8fe01a615b2c12a18673ffbe29a643149d7 (diff) | |
download | p5-Git-Annex-c383a31cd0c75ade6df76f69240893f85b6710de.tar.gz |
die if can't get annex UUID
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/annex-review-unused | 8 |
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; |