From 07a7d20c88aca529df7ee882eef446f1f37dd2bf Mon Sep 17 00:00:00 2001 From: Henil Panchal Date: Sat, 27 Apr 2024 20:57:09 +0530 Subject: [PATCH] fix: #1023 --- src/fpm/git.f90 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/fpm/git.f90 b/src/fpm/git.f90 index 1f2891af8a..a4f0f06a4a 100644 --- a/src/fpm/git.f90 +++ b/src/fpm/git.f90 @@ -441,11 +441,12 @@ subroutine git_archive(source, destination, ref, additional_files, verbose, erro endif call run('git archive '//ref//' & - --format='//archive_format// & - add_files//' \ - -o '//destination, \ - echo=verbose, \ - exitstat=stat) + & --format='//archive_format// & + & add_files//' & + & -o '//destination, & + & echo=verbose, & + & exitstat=stat) + if (stat /= 0) then call fatal_error(error, "Error packing '"//source//"'."); return end if