]> git.madduck.net Git - code/myrepos.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Deal with abs_path change in new version of perl, now it returns undefined when the...
authorJoey Hess <joey@kitenet.net>
Sun, 31 Aug 2014 20:20:22 +0000 (13:20 -0700)
committerJoey Hess <joey@kitenet.net>
Sun, 31 Aug 2014 20:20:22 +0000 (13:20 -0700)
This may cause other breakage; I only fixed the case I was seeing, where
a ~/.mrtrust that referred to a directory that does not exist failed.

debian/changelog
mr

index 9a73e8d1214087cd32f84860c45ebab449505913..fbec96990d77aca990f334f3aa0e4c4cc5beeac0 100644 (file)
@@ -1,3 +1,10 @@
+myrepos (1.20140614) UNRELEASED; urgency=medium
+
+  * Deal with abs_path change in new version of perl, now it returns undefined
+    when the directory does not exist.
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 31 Aug 2014 13:19:14 -0700
+
 myrepos (1.20140613) unstable; urgency=medium
 
   * Added lib/git-annex. Thanks, martin f krafft.
diff --git a/mr b/mr
index a7295f0d252799156b6d43b951a42056f8a245df..be7e4e5478c5d75ead79b0d4ffa95a8639947a1e 100755 (executable)
--- a/mr
+++ b/mr
@@ -1154,7 +1154,8 @@ sub is_trusted_config {
                        while (<TRUST>) {
                                chomp;
                                s/^~\//$ENV{HOME}\//;
-                               $trusted{abs_path($_)}=1;
+                               my $d=abs_path($_);
+                               $trusted{$d}=1 if defined $d;
                        }
                        close TRUST;
                }