[pkg-perl-tools] 01/02: Get the actual repo in fork_exists

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 e8fcadbe0508c1ffc9f573b4c655efc50d47e177
Author: Alex Muntada <alexm at alexm.org>
Date:   Mon Nov 7 00:40:48 2016 +0100

    Get the actual repo in fork_exists
---
 lib/Debian/PkgPerl/GitHub.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Debian/PkgPerl/GitHub.pm b/lib/Debian/PkgPerl/GitHub.pm
index 718f6ef..1a34492 100644
--- a/lib/Debian/PkgPerl/GitHub.pm
+++ b/lib/Debian/PkgPerl/GitHub.pm
@@ -79,7 +79,7 @@ Boolean value.
 sub fork_exists {
     my ($gh, $user, $repo) = @_;
 
-    return !!$gh->repos->set_default_user_repo($user, $repo);
+    return !!eval{ $gh->repos->get($user, $repo) };
 }
 
 =head2 create_fork($gh, $owner, $repo, $orgname)

-- 
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