diff --git a/.ci-scripts/build-gitstats.sh b/.ci-scripts/build-gitstats.sh index 62a287128..4cd13c2dc 100755 --- a/.ci-scripts/build-gitstats.sh +++ b/.ci-scripts/build-gitstats.sh @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# Scripts for generating gitstats on travis +# Scripts for generating gitstats in CI # # Downloads current git repo, and builds its stats. @@ -26,11 +26,6 @@ set -eu -o pipefail -# need to download whole history, since travis does only a shallow clone -get_repo() { - git clone https://github.com/qTox/qTox.git -} - make_stats() { # workaround gitstats not supporting non-blocking IO correctly see # https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959 @@ -40,7 +35,7 @@ make_stats() { gitstats \ -c authors_top=1000 \ -c max_authors=100000 \ - qTox \ + . \ "$GITSTATS_DIR" } @@ -51,7 +46,6 @@ verify_exists() { main() { - get_repo make_stats verify_exists } diff --git a/.github/workflows/build-test-deploy.yaml b/.github/workflows/build-test-deploy.yaml index ef314bd03..7f55233f7 100644 --- a/.github/workflows/build-test-deploy.yaml +++ b/.github/workflows/build-test-deploy.yaml @@ -517,6 +517,8 @@ jobs: GITSTATS_DIR: gitstats steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Install gitstats run: sudo apt-get install gitstats - name: Run