diff --git a/dev/tasks/conda-recipes/appveyor.yml b/dev/tasks/conda-recipes/appveyor.yml index df4bbd6cfffb8..5d677c63bfe6f 100644 --- a/dev/tasks/conda-recipes/appveyor.yml +++ b/dev/tasks/conda-recipes/appveyor.yml @@ -45,7 +45,7 @@ test_script: # Clone arrow - git clone --no-checkout {{ arrow.remote }} arrow || exit /B - git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} || exit /B - - git -C arrow checkout {{ arrow.head }} || exit /B + - git -C arrow checkout FETCH_HEAD || exit /B - pushd arrow\dev\tasks\conda-recipes diff --git a/dev/tasks/conda-recipes/travis.linux.yml b/dev/tasks/conda-recipes/travis.linux.yml index 703ebf0018683..9e9f94f4a6acd 100644 --- a/dev/tasks/conda-recipes/travis.linux.yml +++ b/dev/tasks/conda-recipes/travis.linux.yml @@ -49,7 +49,7 @@ install: before_script: - git clone --no-checkout {{ arrow.remote }} arrow - git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} - - git -C arrow checkout {{ arrow.head }} + - git -C arrow checkout FETCH_HEAD - pushd arrow/dev/tasks/conda-recipes diff --git a/dev/tasks/conda-recipes/travis.osx.yml b/dev/tasks/conda-recipes/travis.osx.yml index 83837cacb068c..3093cac9d778a 100644 --- a/dev/tasks/conda-recipes/travis.osx.yml +++ b/dev/tasks/conda-recipes/travis.osx.yml @@ -48,7 +48,7 @@ install: before_script: - git clone --no-checkout {{ arrow.remote }} arrow - git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} - - git -C arrow checkout {{ arrow.head }} + - git -C arrow checkout FETCH_HEAD - pushd arrow/dev/tasks/conda-recipes diff --git a/dev/tasks/docker-tests/circle.linux.yml b/dev/tasks/docker-tests/circle.linux.yml index 47f18173d0a39..7b664eeafedac 100644 --- a/dev/tasks/docker-tests/circle.linux.yml +++ b/dev/tasks/docker-tests/circle.linux.yml @@ -25,7 +25,7 @@ jobs: - run: docker-compose -v - run: git clone --no-checkout {{ arrow.remote }} arrow - run: git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} - - run: git -C arrow checkout {{ arrow.head }} + - run: git -C arrow checkout FETCH_HEAD - run: git -C arrow submodule update --init --recursive - run: | pushd arrow diff --git a/dev/tasks/docker-tests/travis.linux.yml b/dev/tasks/docker-tests/travis.linux.yml index d55d207e3b6b8..7d910d74ba132 100644 --- a/dev/tasks/docker-tests/travis.linux.yml +++ b/dev/tasks/docker-tests/travis.linux.yml @@ -45,7 +45,7 @@ before_install: before_script: - git clone --no-checkout {{ arrow.remote }} arrow - git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} - - git -C arrow checkout {{ arrow.head }} + - git -C arrow checkout FETCH_HEAD - git -C arrow submodule update --init --recursive script: diff --git a/dev/tasks/gandiva-jars/travis.linux.yml b/dev/tasks/gandiva-jars/travis.linux.yml index a7b800f3f3d68..8b3bc21f01fc6 100644 --- a/dev/tasks/gandiva-jars/travis.linux.yml +++ b/dev/tasks/gandiva-jars/travis.linux.yml @@ -43,7 +43,7 @@ before_install: before_script: - git clone --no-checkout {{ arrow.remote }} arrow - git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} - - git -C arrow checkout {{ arrow.head }} + - git -C arrow checkout FETCH_HEAD - export TRAVIS_BUILD_DIR=$TRAVIS_BUILD_DIR/arrow diff --git a/dev/tasks/gandiva-jars/travis.osx.yml b/dev/tasks/gandiva-jars/travis.osx.yml index efe8feca0145a..ac25b0470e2b8 100644 --- a/dev/tasks/gandiva-jars/travis.osx.yml +++ b/dev/tasks/gandiva-jars/travis.osx.yml @@ -35,7 +35,7 @@ env: before_script: - git clone --no-checkout {{ arrow.remote }} arrow - git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} - - git -C arrow checkout {{ arrow.head }} + - git -C arrow checkout FETCH_HEAD - export TRAVIS_BUILD_DIR=$TRAVIS_BUILD_DIR/arrow - brew update diff --git a/dev/tasks/linux-packages/travis.linux.arm64.yml b/dev/tasks/linux-packages/travis.linux.arm64.yml index 853b7069dcb22..7bb5ad0496f5c 100644 --- a/dev/tasks/linux-packages/travis.linux.arm64.yml +++ b/dev/tasks/linux-packages/travis.linux.arm64.yml @@ -40,7 +40,7 @@ env: before_script: - git clone --no-checkout {{ arrow.remote }} arrow - git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} - - git -C arrow checkout {{ arrow.head }} + - git -C arrow checkout FETCH_HEAD script: - pushd arrow/dev/tasks/linux-packages diff --git a/dev/tasks/linux-packages/travis.linux.yml b/dev/tasks/linux-packages/travis.linux.yml index 937d4c7e7cfb9..7546587d123cf 100644 --- a/dev/tasks/linux-packages/travis.linux.yml +++ b/dev/tasks/linux-packages/travis.linux.yml @@ -34,7 +34,7 @@ env: before_script: - git clone --no-checkout {{ arrow.remote }} arrow - git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} - - git -C arrow checkout {{ arrow.head }} + - git -C arrow checkout FETCH_HEAD script: - pushd arrow/dev/tasks/linux-packages diff --git a/dev/tasks/python-wheels/appveyor.yml b/dev/tasks/python-wheels/appveyor.yml index 9576e64804664..6ad31dd332030 100644 --- a/dev/tasks/python-wheels/appveyor.yml +++ b/dev/tasks/python-wheels/appveyor.yml @@ -36,7 +36,7 @@ build_script: - git clone --no-checkout {{ arrow.remote }} %ARROW_SRC% || exit /B - git -C %ARROW_SRC% fetch -t {{ arrow.remote }} {{ arrow.branch }} || exit /B - - git -C %ARROW_SRC% checkout {{ arrow.head }} || exit /B + - git -C %ARROW_SRC% checkout FETCH_HEAD || exit /B - git -C %ARROW_SRC% submodule update --init || exit /B # Avoid picking up AppVeyor-installed OpenSSL (linker errors with gRPC) diff --git a/dev/tasks/python-wheels/travis.manylinux.yml b/dev/tasks/python-wheels/travis.manylinux.yml index 37b122b78885e..e3670e4319850 100644 --- a/dev/tasks/python-wheels/travis.manylinux.yml +++ b/dev/tasks/python-wheels/travis.manylinux.yml @@ -39,7 +39,7 @@ before_script: script: - git clone --no-checkout {{ arrow.remote }} arrow - git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} - - git -C arrow checkout {{ arrow.head }} + - git -C arrow checkout FETCH_HEAD - mkdir -p dist # build wheel diff --git a/dev/tasks/python-wheels/travis.osx.yml b/dev/tasks/python-wheels/travis.osx.yml index 2db3208dbcbbf..95d9d457566f8 100644 --- a/dev/tasks/python-wheels/travis.osx.yml +++ b/dev/tasks/python-wheels/travis.osx.yml @@ -36,7 +36,7 @@ before_install: - git clone --no-checkout {{ arrow.remote }} arrow - git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} - - git -C arrow checkout {{ arrow.head }} + - git -C arrow checkout FETCH_HEAD # ARROW-3976 Old versions of git can cause failures when Homebrew prints a # donation solicitation. Attempt to update git