[ARVADOS-DEV] updated: 8d09d23a80a1bbb3f5cd31debd94dea46566637a

git at public.curoverse.com git at public.curoverse.com
Fri Aug 14 14:36:40 EDT 2015


Summary of changes:
 jenkins/run-build-packages.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

       via  8d09d23a80a1bbb3f5cd31debd94dea46566637a (commit)
      from  3f03b72f0c24ee2c5abfe5654107f6e1c019bc15 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 8d09d23a80a1bbb3f5cd31debd94dea46566637a
Author: Tom Clegg <tom at curoverse.com>
Date:   Fri Aug 14 14:36:07 2015 -0400

    6638: Use (git clone; git checkout) -- git checkout --branch doesn't work with commit hashes.

diff --git a/jenkins/run-build-packages.sh b/jenkins/run-build-packages.sh
index 60d7ab6..fed66e5 100755
--- a/jenkins/run-build-packages.sh
+++ b/jenkins/run-build-packages.sh
@@ -441,8 +441,11 @@ handle_python_package
     COMMIT_HASH=$(format_last_commit_here "%H")
 
     SRC_BUILD_DIR=$(mktemp -d)
-    git clone $DASHQ_UNLESS_DEBUG --branch "$COMMIT_HASH" "$WORKSPACE/.git" "$SRC_BUILD_DIR"
+    git clone $DASHQ_UNLESS_DEBUG "$WORKSPACE/.git" "$SRC_BUILD_DIR"
     cd "$SRC_BUILD_DIR"
+
+    # go into detached-head state
+    git checkout $DASHQ_UNLESS_DEBUG "$COMMIT_HASH"
     echo "$COMMIT_HASH" >git-commit.version
 
     cd "$SRC_BUILD_DIR"

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list