about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-04-16 22:24:36 +0000
committerbors <bors@rust-lang.org>2017-04-16 22:24:36 +0000
commit5997806a6a4f1e57491bd9f24c7ac07619bf38d2 (patch)
tree133831cdea3c720c7dba4a06d1eee18d23d521bb /src
parent7627e3d31dd641ae9042675e9032857f58d0c5d1 (diff)
parentbb843582cac721b1a478c6dc12dafee1edbd73e4 (diff)
downloadrust-5997806a6a4f1e57491bd9f24c7ac07619bf38d2.tar.gz
rust-5997806a6a4f1e57491bd9f24c7ac07619bf38d2.zip
Auto merge of #41157 - aidanhs:aphs-debug-appveyor-cache, r=TimNN
Add a comment for disabling errexit, try to debug appveyor cache

Comments added as requested.

Also, lets add some cache debugging to appveyor. I *think* this is how to ignore errors in cmd.exe (and I did try it on my own machine), but I'm not 100% sure how appveyor runs them. In the worst case it'll fail but I guess that isn't the end of the world since the build has already failed by this point.

r? @TimNN
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ci/init_repo.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ci/init_repo.sh b/src/ci/init_repo.sh
index 633b88dd2c4..1db2135eb6d 100755
--- a/src/ci/init_repo.sh
+++ b/src/ci/init_repo.sh
@@ -41,6 +41,8 @@ if [ ! -f "$cache_valid_file" ]; then
     rm -rf "$CACHE_DIR"
     mkdir "$CACHE_DIR"
 else
+    # Ignore errors while gathering information about the possible brokenness
+    # of the git repo since our gathered info will tell us something is wrong
     set +o errexit
     stat_lines=$(cd "$cache_src_dir" && git status --porcelain | wc -l)
     stat_ec=$(cd "$cache_src_dir" && git status >/dev/null 2>&1; echo $?)