From: Joey Hess Date: Tue, 22 Oct 2024 17:25:46 +0000 (-0400) Subject: followup and close X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~17^2~29 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f54c5260e4f2e071bfe2c5767eb8c3d2e1626c22;p=git-annex.git followup and close --- diff --git a/doc/bugs/Wrong_error_message_when_cloning_shared_git_repo.mdwn b/doc/bugs/Wrong_error_message_when_cloning_shared_git_repo.mdwn index 905b528ad1..ee1cc1b479 100644 --- a/doc/bugs/Wrong_error_message_when_cloning_shared_git_repo.mdwn +++ b/doc/bugs/Wrong_error_message_when_cloning_shared_git_repo.mdwn @@ -60,3 +60,4 @@ on Ubuntu installed from nixpkgs. ### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders) +> Seems to be fixed by current git and/or git-annex. [[done]] --[[Joey]] diff --git a/doc/bugs/Wrong_error_message_when_cloning_shared_git_repo/comment_3_bbb6a406f25388fcc8d88265d3c17bbd._comment b/doc/bugs/Wrong_error_message_when_cloning_shared_git_repo/comment_3_bbb6a406f25388fcc8d88265d3c17bbd._comment new file mode 100644 index 0000000000..dd7d3a9baa --- /dev/null +++ b/doc/bugs/Wrong_error_message_when_cloning_shared_git_repo/comment_3_bbb6a406f25388fcc8d88265d3c17bbd._comment @@ -0,0 +1,27 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 3""" + date="2024-10-22T17:15:11Z" + content=""" +Here is what I get while cloning: + + joey@darkstar:/tmp>git clone localhost:/tmp/manrepo xx + Cloning into 'xx'... + fatal: detected dubious ownership in repository at '/tmp/manrepo/.git' + To add an exception for this directory, call: + + git config --global --add safe.directory /tmp/manrepo/.git + fatal: Could not read from remote repository. + + Please make sure you have the correct access rights + and the repository exists. + +This is with git 2.45.2, and since current git prevents cloning a repository in +this situation, git-annex doesn't need to do anything. + +I also tested what happens if the repository ownership allows cloning, but +after clonging and before git-annex init, the repository owner changes. In +that case, with current git-annex, `git-annex-shell configlist` is able to +get the uuid from the remote repository despite the ownership snafu. Which is +ok. +"""]]