Skip to content

Commit 573b9b9

Browse files
committed
Pass git name/email from host
To avoid gemini messing with a particular repo's .git/config Values taken from https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables#_committing
1 parent 8279c03 commit 573b9b9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,18 @@ ccli() {
5757
return
5858
fi
5959

60+
local git_name=$(git config --global user.name)
61+
local git_email=$(git config --global user.email)
62+
6063
docker run \
6164
-v $HOME/.$cli:/home/node/.$cli \
6265
--cap-add=NET_ADMIN --cap-add=NET_RAW \
6366
-e COLUMNS=$(tput cols) \
6467
-e LINES=$(tput lines) \
68+
-e GIT_AUTHOR_NAME="$git_name" \
69+
-e GIT_AUTHOR_EMAIL="$git_email" \
70+
-e GIT_COMMITTER_NAME="$git_name" \
71+
-e GIT_COMMITTER_EMAIL="$git_email" \
6572
-v ./:/workspace \
6673
-w /workspace \
6774
--rm -it \

0 commit comments

Comments
 (0)