Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 465434 Details for
Bug 553906
Git migration: Update hook to enforce QA filename policy
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
update hook v3
update-hook.sh (text/plain; charset=UTF-8), 1.02 KB, created by
Ulrich Müller
on 2017-02-27 18:02:05 UTC
(
hide
)
Description:
update hook v3
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2017-02-27 18:02:05 UTC
Size:
1.02 KB
patch
obsolete
>#!/bin/bash ># Copyright 2015-2017 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 or later > ># Author: Ulrich Müller <ulm@gentoo.org> > >refname=$1 >oldrev=$2 >newrev=$3 > ># Filenames must contain only the characters [A-Za-z0-9._+-] and must ># not begin with a dot, a hyphen, or a plus sign. ># https://devmanual.gentoo.org/general-concepts/tree/#what-belongs-in-the-tree%3F ># https://devmanual.gentoo.org/ebuild-writing/file-format/#file-naming-rules >export LC_ALL=C >regex='^([A-Za-z0-9_][A-Za-z0-9._+-]*/)*[A-Za-z0-9_][A-Za-z0-9._+-]*$' >exceptions=( > .gitignore > metadata/.gitignore >) > ># The following needs >=grep-2.24 for -z working correctly (bug #574662) >git diff -z --name-only --diff-filter=ACR "${oldrev}" "${newrev}" \ > | grep -z -Ev -e "${regex}" \ > | while read -r -d $'\0' path >do > for e in "${exceptions[@]}"; do > [[ ${path} = "${e}" ]] && continue 2 > done > echo "Path \"${path}\" violates file naming rules" >&2 > exit 1 # Note: this exits the loop's subshell >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 553906
:
406158
|
406160
|
408700
|
425430
|
465434
|
468130