[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [rbm/master] Bug 25004: rename abbrev_lenght to abbrev_length



commit b83c74ca4b91732f64011f0255a1594f7747b340
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
Date:   Wed Jan 24 17:34:49 2018 +0100

    Bug 25004: rename abbrev_lenght to abbrev_length
---
 NEWS                     | 2 +-
 doc/options_misc.asc     | 4 ++--
 lib/RBM/DefaultConfig.pm | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/NEWS b/NEWS
index d517840..256cad9 100644
--- a/NEWS
+++ b/NEWS
@@ -39,7 +39,7 @@
 
 - Add support for external input files, documented in burps_input_files(7)
 
-- Add the abbrev and abbrev_lenght options
+- Add the abbrev and abbrev_length options
 
 - Add the tar option, to create deterministic tar files
 
diff --git a/doc/options_misc.asc b/doc/options_misc.asc
index 3b3b877..876768b 100644
--- a/doc/options_misc.asc
+++ b/doc/options_misc.asc
@@ -17,8 +17,8 @@ abbrev::
         This option returns the abbreviated commit hash of the +git_hash+
         or +hg_hash+ commit.
 
-abbrev_lenght::
-        This option sets the lenght of the abbreviated commits, when
+abbrev_length::
+        This option sets the length of the abbreviated commits, when
         using the +abbrev+ option.
 
 tar::
diff --git a/lib/RBM/DefaultConfig.pm b/lib/RBM/DefaultConfig.pm
index d0d893a..4121264 100644
--- a/lib/RBM/DefaultConfig.pm
+++ b/lib/RBM/DefaultConfig.pm
@@ -129,10 +129,10 @@ our %default_config = (
     build_log_append => '1',
     notmpl        => [ qw(projects_dir) ],
     describe      => \&git_describe,
-    abbrev_lenght => '12',
+    abbrev_length => '12',
     abbrev        => '[%
                          IF c("git_url");
-                                exec("git log -1 --abbrev=" _ c("abbrev_lenght") _ " --format=%h " _ c("git_hash"));
+                                exec("git log -1 --abbrev=" _ c("abbrev_length") _ " --format=%h " _ c("git_hash"));
                          ELSE;
                                 exec(c("hg") _ " id -i -r " _ c("hg_hash"));
                          END;

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits