no-git.patch 881 B

123456789101112131415161718192021222324
  1. From 88fdf4a5e0510fe430e81b652621705d3de47746 Mon Sep 17 00:00:00 2001
  2. From: Georg Koppen <gk@torproject.org>
  3. Date: Mon, 6 Jul 2020 17:04:47 +0000
  4. Subject: [PATCH] no git
  5. diff --git a/build.gradle b/build.gradle
  6. index 6b16a91d..af8a3b6e 100644
  7. --- a/build.gradle
  8. +++ b/build.gradle
  9. @@ -79,8 +79,7 @@ import com.sun.jna.Platform as DefaultPlatform
  10. //
  11. // Note we pass the path to the git-dir so that this still works when
  12. // used as a dependency substitution from e.g. android-components.
  13. -ext.libsGitSha = "git --git-dir=${rootProject.rootDir}/.git diff --name-only main -- :/libs".execute().text.allWhitespace ?
  14. - "git --git-dir=${rootProject.rootDir}/.git rev-parse HEAD:libs".execute().text.trim() : null
  15. +ext.libsGitSha = null
  16. // Use in-tree libs from the source directory in CI or if the git SHA is unset; otherwise use
  17. // downloaded libs.
  18. --
  19. 2.27.0