Don't use `git checkout --unshallow` for full-repo Travis CI builds.
Review Request #10974 — Created March 26, 2020 and submitted
Some people use
git: depth: False
in thier Travis CI config, most
commonly because tests may need full access to the repository history.
In this case, we were still includinggit checkout --unshallow
in the
build script, which wasn't fatal but produced ugly warnings. This change
checks for a full-repo checkout in the Travis config and only adds the
checkout if necessary.
Created a Travis integration that included
git: depth: False
in the
config. Saw that prior to this change, an ugly error was shown in the
build log, and after everything was fine.
Description | From | Last Updated |
---|---|---|
Typo in the description: "thier" -> "their". |
chipx86 | |
Can you also add unit tests for this? |
chipx86 | |
F811 redefinition of unused 'test_build_new_review_request' from line 117 |
reviewbot | |
This would be nicer with a new string after every \n, just to help with readability. |
chipx86 |
- Commit:
-
1e42d3637d8837a8a47abc3481e06a6b441a4a1e85ce6d9d54a653b909dbe65ae8bec151ae26d06a