Added a comment: Additional Questions: git annex copy failed

This commit is contained in:
rinomizu5@5ead4c82685c65d7717dbd5591b80425036ae9e3 2022-08-08 10:31:26 +00:00 committed by admin
parent 96794dbd0a
commit d4b29293b8

View file

@ -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
"""]]