Skip to content

Commit fed8635

Browse files
authored
Merge pull request #536 from urbanjost/init_git_on_backfill
still call "git init" even if fpm.toml exists in backfill
2 parents d72d953 + 2b0949f commit fed8635

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/fpm/cmd/new.f90

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,11 @@ subroutine create_verified_basic_manifest(filename)
589589
integer :: lun
590590
character(len=8) :: date
591591

592+
if(exists(filename))then
593+
write(stderr,'(*(g0,1x))')'<INFO> ',filename,&
594+
& 'already exists. Not overwriting'
595+
return
596+
endif
592597
!> get date to put into metadata in manifest file "fpm.toml"
593598
call date_and_time(DATE=date)
594599
table = toml_table()

0 commit comments

Comments
 (0)