followup and close
authorJoey Hess <joeyh@joeyh.name>
Tue, 22 Oct 2024 17:25:46 +0000 (13:25 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 22 Oct 2024 17:25:46 +0000 (13:25 -0400)
doc/bugs/Wrong_error_message_when_cloning_shared_git_repo.mdwn
doc/bugs/Wrong_error_message_when_cloning_shared_git_repo/comment_3_bbb6a406f25388fcc8d88265d3c17bbd._comment [new file with mode: 0644]

index 905b528ad1e1a8b7a2921a90b77534d0bbab4959..ee1cc1b4797f0d294864f8ea4843e7b345336cbf 100644 (file)
@@ -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 (file)
index 0000000..dd7d3a9
--- /dev/null
@@ -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.
+"""]]