Fix enabling of gcrypt repository accessed over ssh; git-annex-shell gcryptsetup had a bug that caused it to fail with permission denied.
This commit is contained in:
parent
2203690822
commit
dff303aa43
2 changed files with 10 additions and 3 deletions
|
@ -23,13 +23,17 @@ seek = [withStrings start]
|
|||
|
||||
start :: String -> CommandStart
|
||||
start gcryptid = next $ next $ do
|
||||
g <- gitRepo
|
||||
u <- getUUID
|
||||
when (u /= NoUUID) $
|
||||
error "gcryptsetup refusing to run; this repository already has a git-annex uuid!"
|
||||
|
||||
g <- gitRepo
|
||||
gu <- Remote.GCrypt.getGCryptUUID True g
|
||||
if u == NoUUID && gu == Nothing
|
||||
let newgu = genUUIDInNameSpace gCryptNameSpace gcryptid
|
||||
if gu == Nothing || gu == Just newgu
|
||||
then if Git.repoIsLocalBare g
|
||||
then do
|
||||
void $ Remote.GCrypt.setupRepo gcryptid g
|
||||
return True
|
||||
else error "cannot use gcrypt in a non-bare repository"
|
||||
else error "gcryptsetup permission denied"
|
||||
else error "gcryptsetup uuid mismatch"
|
||||
|
|
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -6,6 +6,9 @@ git-annex (4.20131102) UNRELEASED; urgency=low
|
|||
with no master branch.
|
||||
* gcrypt, bup: Fix bug that prevented using these special remotes
|
||||
with encryption=pubkey.
|
||||
* Fix enabling of gcrypt repository accessed over ssh;
|
||||
git-annex-shell gcryptsetup had a bug that caused it to fail
|
||||
with permission denied.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Sat, 02 Nov 2013 14:54:36 -0400
|
||||
|
||||
|
|
Loading…
Reference in a new issue