yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject yetus git commit: YETUS-251. default patch-naming-rule points to old yetus url.
Date Tue, 05 Jan 2016 06:34:37 GMT
Repository: yetus
Updated Branches:
  refs/heads/master 08637f9a0 -> 53b837bbe


YETUS-251. default patch-naming-rule points to old yetus url.

Signed-off-by: Allen Wittenauer <aw@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/53b837bb
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/53b837bb
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/53b837bb

Branch: refs/heads/master
Commit: 53b837bbe939c41c584e0ca2fc2b3f059735356e
Parents: 08637f9
Author: Marco Zuehlke <mzuehlke@gmail.com>
Authored: Fri Jan 1 11:13:44 2016 +0100
Committer: Allen Wittenauer <aw@apache.org>
Committed: Mon Jan 4 22:33:58 2016 -0800

----------------------------------------------------------------------
 precommit/test-patch.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/53b837bb/precommit/test-patch.sh
----------------------------------------------------------------------
diff --git a/precommit/test-patch.sh b/precommit/test-patch.sh
index 4d9e4c0..f2f9c59 100755
--- a/precommit/test-patch.sh
+++ b/precommit/test-patch.sh
@@ -54,9 +54,20 @@ TP_FOOTER_COUNTER=0
 ## @replaceable  no
 function setup_defaults
 {
+  declare version="in-progress"
+
   common_defaults
 
-  PATCH_NAMING_RULE="https://yetus.apache.org/documentation/latest/precommit-patchnames"
+  if [[ -f "${BINDIR}/../VERSION" ]]; then
+    version=$(cat "${BINDIR}/../VERSION")
+  elif [[ -f "${BINDIR}/VERSION" ]]; then
+    version=$(cat "${BINDIR}/VERSION")
+  fi
+  if [[ ${version} =~ SNAPSHOT$ ]]; then
+    version="in-progress"
+  fi
+
+  PATCH_NAMING_RULE="https://yetus.apache.org/documentation/${version}/precommit-patchnames"
   INSTANCE=${RANDOM}
   RELOCATE_PATCH_DIR=false
 


Mime
View raw message