From b76cdb3cbbca57559a5742ea62d4320f260216f1 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 21 Jul 2013 18:43:26 -0700 Subject: [PATCH] avoid silly 'unsuccessful stat on filename with \n' warning --- Girocco/Project.pm | 4 ++++ git.git | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Girocco/Project.pm b/Girocco/Project.pm index 0c69170..6b93471 100644 --- a/Girocco/Project.pm +++ b/Girocco/Project.pm @@ -717,12 +717,15 @@ sub get_forkee_name { local $_ = $_[0]; (m#^(.*)/.*?$#)[0]; # } + sub get_forkee_path { + no warnings; # avoid silly 'unsuccessful stat on filename with \n' warning my $forkee = $Girocco::Config::reporoot.'/'.get_forkee_name($_[0]).'.git'; -d $forkee ? $forkee : ''; } sub valid_name { + no warnings; # avoid silly 'unsuccessful stat on filename with \n' warning local $_ = $_[0]; (not m#/# or -d get_forkee_path($_)) # will also catch ^/ and (not m#\./#) @@ -731,6 +734,7 @@ sub valid_name { } sub does_exist { + no warnings; # avoid silly 'unsuccessful stat on filename with \n' warning my ($name) = @_; valid_name($name) or die "tried to query for project with invalid name $name!"; (-d $Girocco::Config::reporoot."/$name.git"); diff --git a/git.git b/git.git index eac62cb..41a44b9 160000 --- a/git.git +++ b/git.git @@ -1 +1 @@ -Subproject commit eac62cb610f77e6492c14550d0aa1c8ffe935977 +Subproject commit 41a44b9d8a6cbca058341e01ec9b78958e7559a8 -- 2.11.4.GIT