[sysadmin-bin: 66/168] Fix expr regular expression syntaxs
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin: 66/168] Fix expr regular expression syntaxs
- Date: Thu, 24 May 2012 19:56:59 +0000 (UTC)
commit 88882bafe23a97373124b2f9359ab04ecb85b48a
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Mar 19 23:20:37 2009 -0400
Fix expr regular expression syntaxs
expr is old-style so it wants \+ not +; fixes problem with
recognizing initial imports.
pre-receive-check-maintainers | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/pre-receive-check-maintainers b/pre-receive-check-maintainers
index 0c3d9a2..48fd76f 100755
--- a/pre-receive-check-maintainers
+++ b/pre-receive-check-maintainers
@@ -16,11 +16,16 @@ check_maintainers() {
return 0
fi
- if expr $oldrev : "^0+$" > /dev/null 2>&1; then
+ if expr $oldrev : "^0\+$" > /dev/null 2>&1; then
# Don't require MAINTAINERS for initial imports; keeps things simple
return 0
fi
+ if expr $newrev : "^0\+$" > /dev/null 2>&1; then
+ # Branch deletion; (shouldn't really happen for the master branch)
+ return 0
+ fi
+
if ! git diff-tree --name-only -r $oldrev $newrev | grep -q -v '\(LINGUAS\|ChangeLog\|.po\)$' ; then
# Looks like something a translator would do, exempt it from the check
return 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]