projects
/
invirt/scripts/git-hooks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I don't trust test's boolean operators.
[invirt/scripts/git-hooks.git]
/
super
/
update
diff --git
a/super/update
b/super/update
index
1e926e8
..
3e74b23
100755
(executable)
--- a/
super/update
+++ b/
super/update
@@
-13,14
+13,14
@@
if [ -z "$GIT_DIR" ]; then
exit 1
fi
exit 1
fi
-if [ -z "$ref" -o -z "$oldrev" -o -z "$newrev" ]; then
+if [ -z "$ref" ] || [ -z "$oldrev" ] || [ -z "$newrev" ]; then
echo "Usage: $0 <ref> <oldrev> <newrev>" >&2
exit 1
fi
# --- Disallow all pushes
echo "Usage: $0 <ref> <oldrev> <newrev>" >&2
exit 1
fi
# --- Disallow all pushes
-echo "*** Pushing to the superrepo is not allowed" >&2
+echo "*** Pushing to the superproject is not allowed" >&2
echo "***" >&2
echo "***" >&2
-echo "*** If you would like to update the superrepo, use remctl" >&2
+echo "*** If you would like to update the superproject, use remctl" >&2
exit 1
exit 1