summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-16 11:29:57 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-16 11:29:57 +0100
commit4ea843a4903a618f216e7f5aa8306f67afd327c6 (patch)
tree4221de285429d6642eabd0e95ff3dbde663d0f97 /build
parent5702f5a4dce161f631c4e0c2204d360290f8dfb4 (diff)
build: initialise git first (before commands)
when running the inject logic, we should still initialise the git repository because these commands make use of the coreboot build system which requires git. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'build')
-rwxr-xr-xbuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/build b/build
index d4d5e520..a48e3061 100755
--- a/build
+++ b/build
@@ -36,9 +36,9 @@ main()
git_err "git config --global user.name \"John Doe\""
git config --global user.email 1>/dev/null 2>/dev/null || \
git_err "git config --global user.email \"john.doe@example.com\""
+ git_init
initcmd $@
- git_init
[ -f "${spath}" ] || $err "Bad command. Check $projectname docs."
shift 1; "$spath" $@ || $err "excmd: ${spath} ${@}"