Added a comment: Additional Questions: git annex copy failed
authorrinomizu5@5ead4c82685c65d7717dbd5591b80425036ae9e3 <rinomizu5@web>
Mon, 8 Aug 2022 10:31:26 +0000 (10:31 +0000)
committeradmin <admin@branchable.com>
Mon, 8 Aug 2022 10:31:26 +0000 (10:31 +0000)
doc/bugs/GIN_is_not_recognized_as_a_git-annex_enabled_repos/comment_3_07460def4969896c87e8696955740fa9._comment [new file with mode: 0644]

diff --git a/doc/bugs/GIN_is_not_recognized_as_a_git-annex_enabled_repos/comment_3_07460def4969896c87e8696955740fa9._comment b/doc/bugs/GIN_is_not_recognized_as_a_git-annex_enabled_repos/comment_3_07460def4969896c87e8696955740fa9._comment
new file mode 100644 (file)
index 0000000..1bb9276
--- /dev/null
@@ -0,0 +1,75 @@
+[[!comment format=mdwn
+ username="rinomizu5@5ead4c82685c65d7717dbd5591b80425036ae9e3"
+ nickname="rinomizu5"
+ avatar="http://cdn.libravatar.org/avatar/62478823018c68821064febcda7e5d4f"
+ subject="Additional Questions: git annex copy failed"
+ date="2022-08-08T10:31:26Z"
+ content="""
+Thanks for the advice, joey.  
+I understand that the URL in the browser bar needs to be set to remote.  
+Then, after modifying the remote URL, I am trying to sync the contents of the git annex file to GIN using the https protocol.  
+But git annex copy command failed.  
+<pre>(base) <font color=\"#8AE234\"><b>mizuguchi@ubuntu</b></font>:<font color=\"#729FCF\"><b>~/https</b></font>$ git annex copy --to=origin test2.txt
+copy test2.txt (not found) failed
+copy: 1 failed
+</pre>  
+I checked the origin remote has annex-uuid, and it's the same as uuid of [annex] in https://gin.g-node.org/ivis-mizuguchi/https/config.   
+I would like to know why git annex cannot find test2.txt.  
+
+### The version of the tool used in my environment is below.  
+- git version 2.24.0  
+- git-annex version: 8.20211123+git12-g02e3756bd-1~ndall+1  
+
+### The repository in GIN
+[https://gin.g-node.org/ivis-mizuguchi/https](https://gin.g-node.org/ivis-mizuguchi/https)
+
+### I have done the following process and failed.  
+1. Create a repository named [https](https://gin.g-node.org/ivis-mizuguchi/https) in GIN with initialization.  And set the repository to public.   
+2. git clone https://gin.g-node.org/ivis-mizuguchi/https  
+3. cd https  
+4. git annex init  
+5. echo \"test\" > test.txt  
+6. git annex add test.txt  
+7. git commit -m \"test\"  
+8. git annex sync origin  
+9. echo \"test\" > test2.txt  
+10. git annex add 'test2.txt'  
+11. git commit -m 'test2'  
+12. git push origin master  
+13. git annex copy --to=origin test2.txt
+  <pre>(base) <font color=\"#8AE234\"><b>mizuguchi@ubuntu</b></font>:<font color=\"#729FCF\"><b>~/https</b></font>$ git annex copy --to=origin test2.txt
+copy test2.txt (not found) failed
+copy: 1 failed
+</pre>
+14. cat .git/config
+  <pre>(base) <font color=\"#8AE234\"><b>mizuguchi@ubuntu</b></font>:<font color=\"#729FCF\"><b>~/https</b></font>$ cat .git/config
+[core]
+       repositoryformatversion = 0
+       filemode = true
+       bare = false
+       logallrefupdates = true
+[remote &quot;origin&quot;]
+       url = https://gin.g-node.org/ivis-mizuguchi/https
+       fetch = +refs/heads/*:refs/remotes/origin/*
+       annex-uuid = c7a50190-9146-44de-8f1d-288551fa32e3
+[branch &quot;master&quot;]
+       remote = origin
+       merge = refs/heads/master
+[annex]
+       uuid = 80f0adc3-3144-4bba-a288-09a9ab009cef
+       version = 8
+[filter &quot;annex&quot;]
+       smudge = git-annex smudge -- %f
+       clean = git-annex smudge --clean -- %f
+</pre>
+
+Any advice would be appreciated.  
+Sincerely,   
+Rino Mizuguchi
+
+
+
+
+
+"""]]