Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2020-08-06 13:52:19 -04:00
commit 62214244d3
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 92 additions and 0 deletions

View file

@ -0,0 +1,56 @@
I was git-annex-adding a folder of big files.
I ran the command while inside a folder I didn't need anymore.
I deleted the folder with nautilus (moved it to trash) which caused the cwd to change and that really confused git-annex.
Root of repo is audio-recordings/
While inside audio-recordings/a I ran `git annex add ../audio-files`
Then I deleted audio-recordings/a with Nautilus which caused its path to change to /.Trash-1000/files/a
As soon as git-annex finished hashing the file it was hashing, this happened:
```
add ../audio-files/moto-maxx/2018.04.17 1438.wav
100% 579.95 MiB 160 MiB/s 0s
../audio-files/moto-maxx/2018.04.17 1438.wav changed while it was being added
failed
fatal: not a git repository: '../.git'
error: unknown option `cached'
usage: git diff --no-index [<options>] <path> <path>
...
[the entire help message]
...
--find-object <object-id>
look for differences that change the number of occurrences of the specified object
--diff-filter [(A|C|D|M|R|T|U|X|B)...[*]]
select files by diff type
--output <file> Output to a specific file
(recording state in git...)
fatal: not a git repository: '../.git'
^Ceral-pathspecs","add","--"] exited 123)
```
The file that was being added was left like this:
ll "audio-files/moto-maxx/2018.04.17 1438.wav"
-r--r--r-- 2 ### ### 608121644 abr 17 2018 'audio-files/moto-maxx/2018.04.17 1438.wav'
It appears git-annex just chmoded it, but didn't symlinkify it.
### What version of git-annex are you using? On what operating system?
Ubuntu 20.04 focal
Linux 5.8.0-050800-generic #202008022230 SMP Sun Aug 2 22:33:21 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
git-annex version: 8.20200226
### 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)
I am absolutely in love with it. I even built a special remote for it and I'm now building another because that one was stupid.
Seriously, git-annex is amazing.

View file

@ -0,0 +1,12 @@
[[!comment format=mdwn
username="cardoso-neto"
avatar="http://cdn.libravatar.org/avatar/d90a656df072f3a29da54302c190c696"
subject="Improperly documented code."
date="2020-08-06T02:52:50Z"
content="""
I found out how to do it after reading his source code for the [Google Drive remote](github.com/Lykos153/git-annex-remote-gdrive).
Feel free to have a look around my remotes <github.com/cardoso-neto/git-annex-remote-manytars> <github.com/cardoso-neto/git-annex-remote-manyzips> which use his [helper module](github.com/Lykos153/AnnexRemote).
To summarize it, you should override __init__ and list your configs there.
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="cardoso-neto"
avatar="http://cdn.libravatar.org/avatar/d90a656df072f3a29da54302c190c696"
subject="Correction."
date="2020-08-06T03:09:12Z"
content="""
I meant this Google Drive remote: <github.com/Lykos153/git-annex-remote-googledrive> not the gdrive one that was discontinued.
"""]]

View file

@ -0,0 +1,16 @@
[[!comment format=mdwn
username="cardoso-neto"
avatar="http://cdn.libravatar.org/avatar/d90a656df072f3a29da54302c190c696"
subject="Fixing URLs."
date="2020-08-06T03:14:57Z"
content="""
Apparently none of them worked, so here they are again:
[github/Lykos153/git-annex-remote-googledrive](https://github.com/Lykos153/git-annex-remote-googledrive)
[github/cardoso-neto/git-annex-remote-manytars](https://github.com/cardoso-neto/git-annex-remote-manytars)
[github/cardoso-neto/git-annex-remote-manyzips](https://github.com/cardoso-neto/git-annex-remote-manyzips)
[github/Lykos153/AnnexRemote](https://github.com/Lykos153/AnnexRemote)
"""]]