Skip to content

Commit d6f5bf2

Browse files
committed
still call "git init" even if fpm.toml exists in backfill
1 parent 1715c04 commit d6f5bf2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/fpm/cmd/new.f90

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ subroutine cmd_new(settings)
9898
! like realpath() or getcwd().
9999
bname=basename(settings%name)
100100

101-
! create NAME/.gitignore file
102-
call warnwrite(join_path(settings%name, '.gitignore'), ['build/*'])
103-
104101
littlefile=[character(len=80) :: '# '//bname, 'My cool new project!']
105102

106103
! create NAME/README.md
@@ -592,6 +589,11 @@ subroutine create_verified_basic_manifest(filename)
592589
integer :: lun
593590
character(len=8) :: date
594591

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

0 commit comments

Comments
 (0)