[Bps-public-commit] Shipwright branch, master, updated. 75a499d2297be213de6d8bbc8061a2f10bad1f28

? sunnavy sunnavy at bestpractical.com
Mon May 24 04:07:45 EDT 2010


The branch, master has been updated
       via  75a499d2297be213de6d8bbc8061a2f10bad1f28 (commit)
      from  de95b78ad369f60dfa57af399e272266845dd9b4 (commit)

Summary of changes:
 lib/Shipwright/Source/Git.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 75a499d2297be213de6d8bbc8061a2f10bad1f28
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon May 24 15:56:25 2010 +0800

    limit log number

diff --git a/lib/Shipwright/Source/Git.pm b/lib/Shipwright/Source/Git.pm
index fe717aa..f0bd3b0 100644
--- a/lib/Shipwright/Source/Git.pm
+++ b/lib/Shipwright/Source/Git.pm
@@ -85,7 +85,7 @@ sub _run {
         }
         else {
             my ($out) = run_cmd(
-                [ $ENV{'SHIPWRIGHT_GIT'}, 'log' ] );
+                [ $ENV{'SHIPWRIGHT_GIT'}, 'log', '-n', 1 ] );
             if ( $out =~ /^commit\s+(\w+)/m ) {
                 $self->version($1);
             }

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



More information about the Bps-public-commit mailing list