26b162c8dc
This was found useful by @Bramas when building a Dockerfile of the web app itself. See https://github.com/ente-io/ente/pull/1065. Now, the GIT_SHA environment variable can just be undefined if we're not in a git repository, and the code using it deals with that case explicitly. **Tested by** Temporarily inverted the isDevBuild flag, tehn 1. Ran the build normally and verified that the SHA continued to appear in the logs. 2. Ran the build after copying to a standalone folder without an associated git repository and verified that the SHA was skipped without causing the build to fail. |
||
---|---|---|
.. | ||
apps | ||
components | ||
constants | ||
crypto | ||
electron | ||
error | ||
events | ||
hooks | ||
logging | ||
network | ||
next | ||
platform | ||
promise | ||
sentry | ||
sleep | ||
storage | ||
themes | ||
time | ||
upload | ||
user | ||
utils | ||
watchFolder | ||
worker | ||
.eslintrc.js | ||
package.json | ||
README.md | ||
tsconfig.json |