registerurl: Allow it to be used in a bare repository.
This commit is contained in:
parent
06665d733a
commit
97ae474585
2 changed files with 5 additions and 5 deletions
|
@ -2,6 +2,7 @@ git-annex (8.20210224) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* Windows: Correct the path to the html help file for 64 bit build.
|
* 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
|
* 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
|
-- Joey Hess <id@joeyh.name> Wed, 24 Feb 2021 13:18:38 -0400
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,10 @@ import Command.FromKey (keyOpt)
|
||||||
import qualified Remote
|
import qualified Remote
|
||||||
|
|
||||||
cmd :: Command
|
cmd :: Command
|
||||||
cmd = notBareRepo $
|
cmd = command "registerurl"
|
||||||
command "registerurl"
|
SectionPlumbing "registers an url for a key"
|
||||||
SectionPlumbing "registers an url for a key"
|
(paramPair paramKey paramUrl)
|
||||||
(paramPair paramKey paramUrl)
|
(seek <$$> optParser)
|
||||||
(seek <$$> optParser)
|
|
||||||
|
|
||||||
data RegisterUrlOptions = RegisterUrlOptions
|
data RegisterUrlOptions = RegisterUrlOptions
|
||||||
{ keyUrlPairs :: CmdParams
|
{ keyUrlPairs :: CmdParams
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue