[pkg-perl-tools] 02/02: Provide patch realpath to git apply

Alex Muntada alexm-guest at moszumanska.debian.org
Sun Nov 6 23:48:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

alexm-guest pushed a commit to branch master
in repository pkg-perl-tools.

commit 40cca2bf8821c252ab5ef2f62e72da68b46e0e9e
Author: Alex Muntada <alexm at alexm.org>
Date:   Mon Nov 7 00:47:56 2016 +0100

    Provide patch realpath to git apply
---
 lib/Debian/PkgPerl/GitHub.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/Debian/PkgPerl/GitHub.pm b/lib/Debian/PkgPerl/GitHub.pm
index 1a34492..fbaa712 100644
--- a/lib/Debian/PkgPerl/GitHub.pm
+++ b/lib/Debian/PkgPerl/GitHub.pm
@@ -38,6 +38,7 @@ forwarding patches to GitHub as pull requests.
 
 use File::Temp qw(tempdir);
 use Git::Repository;
+use Cwd 'realpath';
 
 use Exporter 'import';
 our @EXPORT_OK = qw(
@@ -178,7 +179,7 @@ sub clone_branch_patch_push {
     $r->run( checkout => '-b', $branch );
 
     # Patch
-    $r->run( apply => '-p1', $patch );
+    $r->run( apply => '-p1', realpath($patch) );
 
     # Push
     $r->run( add => '.' );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git



More information about the Pkg-perl-cvs-commits mailing list