-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '0.16.3-13-g446d3c0bd' into merge-maint
* commit '0.16.3-13-g446d3c0bd': TST: Add minimal testcase for #6712 BF: Catch KeyErrors from unavailable WTF infos BF(TST): do full clone to ensure having most recent tag Add annex.private to ephemeral clones Replace Zenodo DOI with JOSS for due credit ENH: comment out errorneous check ENH: convert-git-annex-layout - better condensed feedback via tqdm A little helper to jump between git annex objects layouts ENH: provide argcomplete version depend at least 1.12.3 [skip ci] Update RST changelog Update CHANGELOG.md [skip ci] No change for a PR to trigger release TST: test correct content availability of url-key files after url-sanitization BF: Sanitize keys before marking content availability MNT: Move _sanitize_key helper from ora_remote into annex_utils Conflicts: datalad/support/tests/test_fileinfo.py - was already CPed into maint, caused conflict on import. fixed
- Loading branch information
Showing
10 changed files
with
172 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
to="$1" | ||
|
||
echo "Initial fsck:" | ||
git annex fsck --fast 2>&1 | python -m tqdm --null | ||
echo "Going through objects: " | ||
for f in .git/annex/objects/*/*/*; do | ||
key=$(basename $f) | ||
keydir=$(dirname $f) | ||
newhashdir=$(git annex examinekey --format="\${$to}" "$key") | ||
targetdir=".git/annex/objects/$newhashdir" | ||
test -n "$newhashdir" | ||
if [ "$keydir" = "${targetdir%/}" ]; then | ||
continue | ||
fi | ||
echo " $f -> $newhashdir" | ||
# This was a wrong assumption - there could be multiple | ||
# keys in the same directory so we might have it already. | ||
# But I still feel we might need some test here | ||
#if test -e "$targetdir"; then | ||
# echo "$targetdir already exists" | ||
# exit 1 | ||
#fi | ||
mkdir -p "$(dirname $targetdir)" | ||
mv "$keydir" "${targetdir%/}" | ||
done | ||
echo "Final fsck:" | ||
git annex fsck --fast 2>&1 | python -m tqdm --null |