Skip to content

Commit 0dc8cb6

Browse files
committed
patch: add fpm_model
1 parent 1bdd17b commit 0dc8cb6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/fpm/git.f90

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,12 @@ subroutine git_archive(source, destination, ref, verbose, error)
448448
call fatal_error(error, "Cannot find a suitable archive format for 'git archive'."); return
449449
end if
450450

451-
call run('git archive '//ref//' --format='//archive_format//' -o '//destination, echo=verbose, exitstat=stat)
451+
call run('git archive '//ref//' &
452+
--format='//archive_format//' &
453+
--add-file=fpm_model.json \
454+
-o '//destination, \
455+
echo=verbose, \
456+
exitstat=stat)
452457
if (stat /= 0) then
453458
call fatal_error(error, "Error packing '"//source//"'."); return
454459
end if

0 commit comments

Comments
 (0)