Skip to content

Commit ef6ecaf

Browse files
dkmantoyo
authored andcommitted
Add dummy author info in case none is configured (#36)
This is currently needed when the script is executed in a virgin environment as git needs this to create the "initial commit" in the build_sysroot/prepare_sysroot_src.sh script.
1 parent 7da7cbd commit ef6ecaf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build_sysroot/prepare_sysroot_src.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ git init
2020
echo "[GIT] add"
2121
git add .
2222
echo "[GIT] commit"
23+
24+
# This is needed on virgin system where nothing is configured.
25+
# git really needs something here, or it will fail.
26+
# Even using --author is not enough.
27+
git config user.email || git config user.email "none@example.com"
28+
git config user.name || git config user.name "None"
29+
2330
git commit -m "Initial commit" -q
2431
for file in $(ls ../../patches/ | grep -v patcha); do
2532
echo "[GIT] apply" $file

0 commit comments

Comments
 (0)