about summary refs log tree commit diff
path: root/src/ci
diff options
context:
space:
mode:
authorAidan Hobson Sayers <aidanhs@cantab.net>2017-04-08 08:39:31 +0100
committerAidan Hobson Sayers <aidanhs@cantab.net>2017-04-14 15:30:01 +0100
commitbb843582cac721b1a478c6dc12dafee1edbd73e4 (patch)
treecb400e4205148e6431ec7495b22c4d5293ce4e17 /src/ci
parent547c12b8a61d7d0c047649c236f84b59ca2d2cc9 (diff)
downloadrust-bb843582cac721b1a478c6dc12dafee1edbd73e4.tar.gz
rust-bb843582cac721b1a478c6dc12dafee1edbd73e4.zip
Add a comment for disabling errexit
Diffstat (limited to 'src/ci')
-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 $?)