[sysadmin-bin] There is no such thing as repositories imports anymore (cgit leftover)
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] There is no such thing as repositories imports anymore (cgit leftover)
- Date: Fri, 10 Sep 2021 10:02:02 +0000 (UTC)
commit bff2f51bc340bc3bb4bfba7412cbb68dd60ec17e
Author: Andrea Veri <averi redhat com>
Date: Fri Sep 10 11:27:28 2021 +0200
There is no such thing as repositories imports anymore (cgit leftover)
git/pre-receive-check-po | 6 ------
git/pre-receive-check-policy | 22 ++++++++--------------
2 files changed, 8 insertions(+), 20 deletions(-)
---
diff --git a/git/pre-receive-check-po b/git/pre-receive-check-po
index 6dcd4a6..7622e0e 100755
--- a/git/pre-receive-check-po
+++ b/git/pre-receive-check-po
@@ -167,12 +167,6 @@ if [ "$check_po" != "true" ] ; then
exit 0
fi
-# Don't check .po's during import; we don't want to enforce correct
-# .po files for some ancient historical branch
-if [ -e $GIT_DIR/pending ] ; then
- exit 0
-fi
-
if [ $# = 3 ] ; then
check_pos $@ || exit 1
else
diff --git a/git/pre-receive-check-policy b/git/pre-receive-check-policy
index b73fd09..a4a752e 100755
--- a/git/pre-receive-check-policy
+++ b/git/pre-receive-check-policy
@@ -16,10 +16,6 @@ server=gitlab.gnome.org
mainline=$(git symbolic-ref --quiet --short HEAD)
mainline=${mainline:-"master"}
-in_import() {
- test -e "$GIT_DIR/pending"
-}
-
forced() {
test -n "$GNOME_GIT_FORCE"
}
@@ -30,7 +26,7 @@ check_commit() {
email="$(git log $commit -1 --pretty=format:%ae)"
case "$email" in
*localhost.localdomain|*\(none\))
- if ! in_import && ! forced ; then
+ if ! forced ; then
cat <<- EOF >&2
---
The commits you are trying to push contain the author email
@@ -50,7 +46,7 @@ check_commit() {
subject="$(git log $commit -1 --pretty=format:%s)"
if expr "$subject" : ".*Merge branch.*of.*\(git\|ssh\):" > /dev/null 2>&1; then
- if ! in_import && ! forced ; then
+ if ! forced ; then
cat <<- EOF >&2
---
The commit:
@@ -72,7 +68,7 @@ check_commit() {
body="$(git log $commit -1 --pretty=format:%b)"
if expr "$body" : ".*FIXME: need commit message" > /dev/null 2>&1; then
- if ! in_import && ! forced ; then
+ if ! forced ; then
cat <<- EOF >&2
---
The commit:
@@ -206,7 +202,7 @@ check_ref_update() {
commit)
# Lightweight tag; we allow an import containing these
# tags, but forbid them in general
- if ! in_import && ! forced ; then
+ if ! forced ; then
cat <<- EOF >&2
---
You are trying to push the lightweight tag '$tagname'. You should
either
@@ -245,12 +241,10 @@ check_ref_update() {
# Deleting a tag is probably someone trying to work-around
# not being able to update a tag. Disallowing lightweight
# tags will cut down on accidentally pushing tags called 'list'
- # or whatever. During import we allow the user to clean up
- # accidentally pushed tags. An exception to above rule is
- # deleting tag named HEAD. There are some projects which
- # created such tag before rejecting its creation was added
- # to policy.
- if ! in_import && ! forced && [ 'x'"$tagname" != 'xHEAD' ] ; then
+ # or whatever. An exception to above rule is deleting tag named
+ # HEAD. There are some projects which created such tag before
+ # rejecting its creation was added to policy.
+ if ! forced && [ 'x'"$tagname" != 'xHEAD' ] ; then
cat <<- EOF >&2
---
You are trying to delete the tag '$tagname'.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]