summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar spam@9590d16798fd27f4e38472862e296fc9828e3d39 <spam@web>2017-11-11 19:51:57 +0000
committerGravatar admin <admin@branchable.com>2017-11-11 19:51:57 +0000
commitfe7e92079727e3b0875aa3603461b53dec12ae6c (patch)
tree465e0c63d6137170ad1c3ce4cd58cb0080015d35
parentebd0711e8aa09580bef81590ea277f7bd1f96871 (diff)
Added a comment: remote "origin" missing some gcrypt commands?
-rw-r--r--doc/tips/fully_encrypted_git_repositories_with_gcrypt/comment_17_098998132fb0bcf130b5bf8a16ac8b8a._comment54
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/tips/fully_encrypted_git_repositories_with_gcrypt/comment_17_098998132fb0bcf130b5bf8a16ac8b8a._comment b/doc/tips/fully_encrypted_git_repositories_with_gcrypt/comment_17_098998132fb0bcf130b5bf8a16ac8b8a._comment
new file mode 100644
index 000000000..8026567a6
--- /dev/null
+++ b/doc/tips/fully_encrypted_git_repositories_with_gcrypt/comment_17_098998132fb0bcf130b5bf8a16ac8b8a._comment
@@ -0,0 +1,54 @@
+[[!comment format=mdwn
+ username="spam@9590d16798fd27f4e38472862e296fc9828e3d39"
+ nickname="spam"
+ avatar="http://cdn.libravatar.org/avatar/838ad52bf6bddd532ff179811be47f52"
+ subject="remote &quot;origin&quot; missing some gcrypt commands?"
+ date="2017-11-11T19:51:56Z"
+ content="""
+
+I just discovered that cloning over ssh an gcrypt encrypted repository and enabling the remote afterwards is somehow messing up the git config:
+
+git clone grypt::ssh://user@ip.com:/mnt/encrypted_backup
+cd encrypted_backup
+git annex enableremote encrypted_backup gitrepo=/.../encrypted_backup
+
+leads to following in the .git/config of the just cloned repository:
+
+...
+[remote \"origin\"]
+url = grypt::ssh://user@ip.com:/mnt/encrypted_backup
+gcrypt-id = :id:12312312
+fetch = +refs/heads/*:refs/remotes/origin/*
+
+[remote \"encrypted_backup\"]
+url = grypt::ssh://user@ip.com:/mnt/encrypted_backup
+fetch = +refs/heads/*:refs/remotes/server/*
+gcrypt-participants = keyid
+gcrypt-signingkey = keyid
+gcrypt-publish-participants = true
+gcrypt-id = :id:adsasd
+annex-gcrypt = shell
+annex-uuid = 312312312
+...
+
+Note, that for the remote \"origin\" some config like the signingkey is missing compared to the remote \"encrypted_backup\"
+
+Then, running
+git annex sync --content
+
+leads to a error saying
+
+\"gcrypt: Failed to decrypt manifest!\"
+
+during the push process.
+After that I am not able to sync the repository anymore, even with the original repostitory, which initiated the remote.
+The encrypted_backup is then somehow messed up.
+
+Removing the \"origin\" remote via
+git remote remove origin
+
+solves the problem for me. But that command has to be launched right before the first sync, pull or push command! Otherwise the sync process cannot be done anymore.
+
+
+
+"""]]