summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-03-11 14:38:03 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-03-11 14:38:03 -0700
commitc481b479107b41cb5ef2221aaaeb34a18f18c002 (patch)
treefabed96b803e2a46daa4cb07a2ceaf38fea01cce
parentfb616f317b81b86e881ec036c8472dc1bf3cae5a (diff)
parentda45800bee048182963e444a62413c5f4db2b773 (diff)
downloadp5-Git-Annex-c481b479107b41cb5ef2221aaaeb34a18f18c002.tar.gz
Merge tag 'v0.003' into debian
v0.003 # gpg: Signature made Wed 11 Mar 2020 02:37:03 PM MST # gpg: using RSA key 9B917007AE030E36E4FC248B695B7AE4BF066240 # gpg: issuer "spwhitton@spwhitton.name" # gpg: Good signature from "Sean Whitton <spwhitton@spwhitton.name>" [ultimate] # Primary key fingerprint: 8DC2 487E 51AB DD90 B5C4 753F 0F56 D055 3B6D 411B # Subkey fingerprint: 9B91 7007 AE03 0E36 E4FC 248B 695B 7AE4 BF06 6240
-rw-r--r--.gitignore1
-rw-r--r--Changes10
-rw-r--r--dist.ini2
-rw-r--r--lib/App/annex_to_annex.pm9
4 files changed, 17 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index d42646b..31b1bfa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/Git-Annex-*
+/.build
diff --git a/Changes b/Changes
index 4eec01b..7d72e95 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,16 @@ Revision history for Git::Annex
{{$NEXT}}
+0.003 2020-03-11 14:35:04-07:00 America/Phoenix
+ - annex-to-annex: Fix path passed to git-annex-find(1) when
+ looking for missing files.
+ - annex-to-annex: Fix path passed to git-annex-lookupkey(1) when
+ determining whether source files are annexed.
+ - annex-to-annex: Pass relative path to git-annex-find(1) when
+ determining if a file was unlocked in the source annex.
+ Workaround for bug in git-annex: git-annex-find(1) returns
+ incorrect response for absolute paths when in --batch mode.
+
0.002 2020-02-24 07:33:02-07:00 America/Phoenix
- Fix logic in an example in Git::Annex::BatchCommand SYNOPSIS.
- annex-review-unused: 'b' should go back one entry not two.
diff --git a/dist.ini b/dist.ini
index 5d4923d..a85f87c 100644
--- a/dist.ini
+++ b/dist.ini
@@ -4,7 +4,7 @@ license = GPL_3
copyright_holder = Sean Whitton <spwhitton@spwhitton.name>
copyright_year = 2019-2020
-version = 0.002
+version = 0.003
[PkgVersion]
[PodWeaver]
diff --git a/lib/App/annex_to_annex.pm b/lib/App/annex_to_annex.pm
index d68cc4a..af4346b 100644
--- a/lib/App/annex_to_annex.pm
+++ b/lib/App/annex_to_annex.pm
@@ -109,9 +109,9 @@ sub main {
#>>>
}
- my $base = basename $source;
my @missing
- = $annex->annex->find("--not", "--in", "here", $base);
+ = $annex->annex->find("--not", "--in", "here",
+ abs2rel $source, $annex->toplevel);
if (@missing) {
say "Following annexed files are not present in this repo:";
say for @missing;
@@ -130,7 +130,7 @@ sub main {
die "$target already exists!\n"
if -e $target and !-d $target;
- my $key = $lk->ask($rel);
+ my $key = $lk->ask($File::Find::name);
if ($key) { # this is an annexed file
my $content = rel2abs $cl->ask($key), $annex->toplevel;
my $content_device_id = (stat $content)[0];
@@ -147,7 +147,8 @@ sub main {
# to the source, or anything like that
system "git", "-C", $dest, "annex", "add", $rel;
system "git", "-C", $dest, "annex", "unlock", $rel
- if $find->ask($rel);
+ if $find->ask(abs2rel $File::Find::name,
+ $annex->toplevel);
# if using the default backend, quick sanity check
if ($key =~ /^SHA256E-s[0-9]+--([0-9a-f]+)/) {