kiesraad / abacus

Abacus, software voor verkiezingsuitslagen en zetelverdeling
https://kiesraad-abacus.pages.dev
European Union Public License 1.2
19 stars 6 forks source link

Fix build outside of Git repo #620

Closed praseodym closed 1 day ago

praseodym commented 2 days ago

Building doesn't work when Abacus is not a Git repo (e.g. a zip downloaded from GitHub), this should be fixed.

> abacus-frontend@0.0.1 build
> tsc && cross-env API_MODE=local vite build

fatal: not a git repository (or any of the parent directories): .git
failed to load config from ████/frontend/vite.config.ts
error during build:
Error: Command failed: git status --porcelain
fatal: not a git repository (or any of the parent directories): .git