Skip to content

Commit

Permalink
patch: add fpm_model
Browse files Browse the repository at this point in the history
  • Loading branch information
henilp105 committed Mar 24, 2024
1 parent 1bdd17b commit 0dc8cb6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/fpm/git.f90
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0dc8cb6

Please sign in to comment.