fetchgitlocal: don't force copying the whole source directory into the store..
This commit is contained in:
parent
da73e45cd0
commit
1a68f81db4
@ -1,10 +1,10 @@
|
|||||||
{ runCommand, git }: src:
|
{ runCommand, git }: src:
|
||||||
|
|
||||||
runCommand "local-git-export" {} ''
|
runCommand "local-git-export" {} ''
|
||||||
cd ${src}
|
cd ${toString src}
|
||||||
mkdir -p "$out"
|
mkdir -p "$out"
|
||||||
for file in $(${git}/bin/git ls-files); do
|
for file in $(${git}/bin/git ls-files); do
|
||||||
mkdir -p "$out/$(dirname $file)"
|
mkdir -p "$out/$(dirname $file)"
|
||||||
cp -d $file "$out/$file"
|
cp -d $file "$out/$file" || true # don't fail when trying to copy a directory
|
||||||
done
|
done
|
||||||
''
|
''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user