We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f1e198 commit f2cd8b3Copy full SHA for f2cd8b3
src/docker.sh
@@ -51,6 +51,11 @@ run() {
51
composer_home="-v $composer_home:$composer_home"
52
fi
53
54
+ local gitconfig=""
55
+ if [ -f ~/.gitconfig ]; then
56
+ gitconfig="-v ~/.gitconfig:/root/.gitconfig:ro"
57
+ fi
58
+
59
if [ -n "$GIT_EXEC_PATH" ]; then
60
# In a Git hook environment, we need to disable TTY allocation
61
PHPCTL_TTY="--label=no-tty"
@@ -68,7 +73,7 @@ run() {
68
73
--user "$PHPCTL_USER" \
69
74
$(env | awk -F= '/^[[:alpha:]]/{print $1}' | sed 's/^/-e/') \
70
75
-v /var/run/docker.sock:/var/run/docker.sock \
71
- -v ~/.gitconfig:/root/.gitconfig:ro \
76
+ $gitconfig \
72
77
-v "$(pwd)":/usr/local/src -w /usr/local/src \
78
-v "$PHPCTL_DIR/php.ini:/etc/php$PHP_VERSION/conf.d/zphp.ini" \
79
$phpctl_ini \
0 commit comments