Skip to content

Commit

Permalink
Docker: Use git reset instead of checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Sep 12, 2019
1 parent c27c7b5 commit b97225a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/docker/scripts/ci_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ shopt -u nullglob
if [ -n "${GIT_REF}" ]; then
echo -e "\n========== Fetching Git Commit =========="
cd /workspace/cp2k
git fetch origin "${GIT_BRANCH}"
git -c advice.detachedHead=false checkout "${GIT_REF}"
git fetch --quiet origin "${GIT_BRANCH}"
git reset --quiet --hard "${GIT_REF}"
git submodule update --init --recursive
git --no-pager log -1 --pretty='%nCommitSHA: %H%nCommitTime: %ci%nCommitAuthor: %an%nCommitSubject: %s%n'

Expand Down

0 comments on commit b97225a

Please sign in to comment.