]> granicus.if.org Git - libexpat/commitdiff
AppVeyor: Drop "clone_depth: 1" because subsequent pushes were failing ongoing builds
authorSebastian Pipping <sebastian@pipping.org>
Wed, 17 Jul 2019 15:28:31 +0000 (17:28 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Wed, 17 Jul 2019 15:28:31 +0000 (17:28 +0200)
Symptom:
  Build started
  git config --global core.autocrlf input
  git clone -q --depth=1 --branch=master https://github.com/libexpat/libexpat.git c:\projects\libexpat
  git checkout -qf d4d8d486af1810bff52612d84533985b9b47b7a6
  fatal: reference is not a tree: d4d8d486af1810bff52612d84533985b9b47b7a6

Cause:
  A more recent push made d4d8d486af1810bff52612d84533985b9b47b7a6
  the second-last commit so that --depth=1 would create a commit
  graph without that commit.

Documented at:
https://www.appveyor.com/docs/how-to/repository-shallow-clone/#setting-depth-of-git-clone-command

appveyor.yml

index f52e7871d40e506869d7b0845c3da18ffe19735d..5008fb42c107d8237441cd0cf288a88f542a5072 100644 (file)
@@ -36,9 +36,6 @@ init:
 # version format
 version: libexpat-{build}
 
-# set clone depth, clone entire repository history if not defined
-clone_depth: 1
-
 # clone directory
 clone_folder: c:\projects\libexpat