Skip to content

Commit

Permalink
Create dummy home for git, when build runs as "nobody"
Browse files Browse the repository at this point in the history
  • Loading branch information
daemonblade committed Apr 13, 2019
1 parent 1f03279 commit 8b0090b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions java-eclipse/scripts/pre-build
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ cd ${WRKSRC}

ARCHS="amd64 powerpc64"

# Create repo for jgit
# Create dummy repo for jgit
if [ ! -d .git ]
then
git init
git add .
git commit -q --message="java/eclipse" --author="Eclipse <[email protected]>"
mkdir ${WRKDIR}/githome
(
export HOME=${WRKDIR}/githome
git init
git add .
git commit -q --message="java/eclipse" --author="Eclipse <[email protected]>"
)
fi

# Create dummy targets
Expand Down

0 comments on commit 8b0090b

Please sign in to comment.