Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src-opam/dockerfile_windows.ml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ module Cygwin = struct
module Git = struct
let init ?(cyg=default) ?(name="Docker") ?(email="[email protected]") () =
env ["HOME", cyg.root ^ {|\home\opam|}]
@@ run_sh ~cyg "git config --global user.email '%s' && git config --global user.name '%s' && git config --system core.longpaths true" email name
@@ run_sh ~cyg "git config --global user.email '%s' && \
git config --global user.name '%s' && \
git config --system core.longpaths true && \
git config --global --add safe.directory /home/opam/opam-repository" email name
end
end

Expand Down Expand Up @@ -228,6 +231,9 @@ module Winget = struct

module Git = struct
let init ?(name="Docker") ?(email="[email protected]") () =
run "git config --global user.email %S && git config --global user.name %S && git config --system core.longpaths true" email name
run "git config --global user.email %S && \
git config --global user.name %S && \
git config --system core.longpaths true && \
git config --global --add safe.directory C:/cygwin64/home/opam/opam-repository" email name
end
end