[sysadmin-bin] Fix indentantion, 2nd run
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Fix indentantion, 2nd run
- Date: Fri, 15 Dec 2017 14:01:43 +0000 (UTC)
commit ddf47c7b577512e007bdd4ad07dcc3a6233e36d3
Author: Andrea Veri <averi redhat com>
Date: Fri Dec 15 15:01:30 2017 +0100
Fix indentantion, 2nd run
git/pre-receive-check-policy | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/git/pre-receive-check-policy b/git/pre-receive-check-policy
index e3f9074..4a26add 100755
--- a/git/pre-receive-check-policy
+++ b/git/pre-receive-check-policy
@@ -116,9 +116,9 @@ check_ref_update() {
is_master=false
is_gnome=false
case $branchname in
- wip/*) is_wip=true ;;
- master) is_master=true ;;
- gnome-*) is_gnome=true ;;
+ wip/*) is_wip=true ;;
+ master) is_master=true ;;
+ gnome-*) is_gnome=true ;;
esac
range=
@@ -162,24 +162,24 @@ check_ref_update() {
nonfastforward=true
fi
elif [ "`hostname`" == 'gitlab.gnome.org' ]; then
- if ($is_master || $is_gnome); then
+ if [ $is_master || $is_gnome ]; then
nonfastforward=true
fi
fi
fi
- if $nonfastforward; then
- cat <<- EOF >&2
- ---
- You are trying to update the branch '$branchname' in a way that is not
- a fast-forward update. Please see:
-
- https://wiki.gnome.org/Git/Help/NonFastForward
- ---
- EOF
- exit 1
- fi
- ;;
+ if [ "$nonfastforward" = true ] ; then
+ cat <<- EOF >&2
+ ---
+ You are trying to update the branch '$branchname' in a way that is not
+ a fast-forward update. Please see:
+
+ https://wiki.gnome.org/Git/Help/NonFastForward
+ ---
+ EOF
+ exit 1
+ fi
+ ;;
esac
# For new commits introduced with this branch update, we want to run some
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]