diff --git a/src/fpm/git.f90 b/src/fpm/git.f90 index 22b4179553..012848e387 100644 --- a/src/fpm/git.f90 +++ b/src/fpm/git.f90 @@ -448,7 +448,12 @@ subroutine git_archive(source, destination, ref, verbose, error) call fatal_error(error, "Cannot find a suitable archive format for 'git archive'."); return end if - call run('git archive '//ref//' --format='//archive_format//' -o '//destination, echo=verbose, exitstat=stat) + call run('git archive '//ref//' & + --format='//archive_format//' & + --add-file=fpm_model.json \ + -o '//destination, \ + echo=verbose, \ + exitstat=stat) if (stat /= 0) then call fatal_error(error, "Error packing '"//source//"'."); return end if