[bugzilla-gnome-org-customizations] Fix length of short Git commit hashes (it's 7, not 8)



commit cd911f531d2c949b4b14616395d0b97a587e97dc
Author: Andre Klapper <a9016009 gmx de>
Date:   Thu Jan 8 15:17:06 2015 +0100

    Fix length of short Git commit hashes (it's 7, not 8)

 extensions/GNOME/Extension.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/GNOME/Extension.pm b/extensions/GNOME/Extension.pm
index 0c30b72..0ad6f30 100644
--- a/extensions/GNOME/Extension.pm
+++ b/extensions/GNOME/Extension.pm
@@ -314,7 +314,7 @@ sub bug_format_comment {
    my $text = $args->{'text'};
    if (defined $args->{'bug'}) {
      my $replacerGitCommit = {
-         match => qr{(\scommit\s|\spushed as\s)\#?([a-f0-9]{8,40})}i,
+         match => qr{(\scommit\s|\spushed as\s)\#?([a-f0-9]{7,40})}i,
          replace => sub { _createGitCommitLink($self, $args); }
      };
      push( @$regexes, $replacerGitCommit );


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