[Bps-public-commit] smokingit branch, master, updated. 5567500778169f86bbeb4b9435bd6000a529db6e

Alex Vandiver alexmv at bestpractical.com
Mon Jul 29 17:30:16 EDT 2013


The branch, master has been updated
       via  5567500778169f86bbeb4b9435bd6000a529db6e (commit)
      from  a6b2fc70f41081dfa54f0443da0ccb5453c4742a (commit)

Summary of changes:
 lib/Smokingit/IRC.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 5567500778169f86bbeb4b9435bd6000a529db6e
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Jul 29 17:30:14 2013 -0400

    Display project name, and not a branch object, on failure

diff --git a/lib/Smokingit/IRC.pm b/lib/Smokingit/IRC.pm
index b0d63ba..ef43a72 100644
--- a/lib/Smokingit/IRC.pm
+++ b/lib/Smokingit/IRC.pm
@@ -163,9 +163,10 @@ sub lookup_commitish {
                 $incoming => "No branch $branch found",
             );
         } elsif (@matches > 1) {
+            @matches = map {$_->project->name} @matches;
             return error_reply(
                 $incoming => "Found $branch in ".
-                    join(", ", map {$_->project->name} @matches).
+                    join(", ", @matches).
                     ".  Try, $matches[0]:$branch"
             );
         }

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list