mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
Fix git safe-directory path for docker images
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ if [ "$NO_CHANGE_USER" = "" ]; then
|
||||
# already be running with the right user.
|
||||
#
|
||||
# For NO_CHANGE_USER done in the small number of Dockerfiles affected.
|
||||
echo -e '[safe]\n\tdirectory = *' > /home/user/gitconfig
|
||||
echo -e '[safe]\n\tdirectory = *' > /home/user/.gitconfig
|
||||
|
||||
exec su --preserve-environment -c "env PATH=$PATH \"$0\"" user
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user