Skip to content

Commit

Permalink
git: fix darwin build (#103774)
Browse files Browse the repository at this point in the history
The install step for the darwin specific $out/etc/gitconfig file
assumed that $out/etc already existed. This assumption is no longer
true after f5e2ff1 in #103421. This
change makes make sure the directory exists before adding to it.
  • Loading branch information
thefloweringash authored Nov 14, 2020
1 parent 7b70e8d commit d686ded
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ stdenv.mkDerivation {
'')
+ stdenv.lib.optionalString stdenv.isDarwin ''
# enable git-credential-osxkeychain by default if darwin
mkdir -p $out/etc
cat > $out/etc/gitconfig << EOF
[credential]
helper = osxkeychain
Expand Down

0 comments on commit d686ded

Please sign in to comment.