]> git.donarmstrong.com Git - bin.git/commitdiff
ignore git files
authorDon Armstrong <don@donarmstrong.com>
Sat, 8 Feb 2014 00:56:19 +0000 (16:56 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sat, 8 Feb 2014 00:56:19 +0000 (16:56 -0800)
bibtex_to_paper

index 181f9cf1fbd7b04665c4431e12c07f763a09aaed..121a85544354bf60f8f2c2336371f1d8f1802713 100755 (executable)
@@ -173,6 +173,10 @@ sub load_papers_into_database {
     my @dirs = ref($dir)?@{$dir}:$dir;
 
     my $actually_load_it = sub {
+        if (/\.git/) {
+            $File::Find::prune = 1;
+            return;
+        }
         return unless /\.pdf$/;
         my $xoj = 0;
         if (-e "${_}.xoj") {