registerurl: Allow it to be used in a bare repository.

This commit is contained in:
Joey Hess 2021-03-01 14:03:03 -04:00
parent 06665d733a
commit 97ae474585
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 5 additions and 5 deletions

View file

@ -2,6 +2,7 @@ git-annex (8.20210224) UNRELEASED; urgency=medium
* Windows: Correct the path to the html help file for 64 bit build.
* uninit: Fix a small bug that left a lock file in .git/annex
* registerurl: Allow it to be used in a bare repository.
-- Joey Hess <id@joeyh.name> Wed, 24 Feb 2021 13:18:38 -0400

View file

@ -15,11 +15,10 @@ import Command.FromKey (keyOpt)
import qualified Remote
cmd :: Command
cmd = notBareRepo $
command "registerurl"
SectionPlumbing "registers an url for a key"
(paramPair paramKey paramUrl)
(seek <$$> optParser)
cmd = command "registerurl"
SectionPlumbing "registers an url for a key"
(paramPair paramKey paramUrl)
(seek <$$> optParser)
data RegisterUrlOptions = RegisterUrlOptions
{ keyUrlPairs :: CmdParams