Skip to content

Commit

Permalink
Merge pull request #536 from urbanjost/init_git_on_backfill
Browse files Browse the repository at this point in the history
still call "git init" even if fpm.toml exists in backfill
  • Loading branch information
LKedward authored Aug 19, 2021
2 parents d72d953 + 2b0949f commit fed8635
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/fpm/cmd/new.f90
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,11 @@ subroutine create_verified_basic_manifest(filename)
integer :: lun
character(len=8) :: date

if(exists(filename))then
write(stderr,'(*(g0,1x))')'<INFO> ',filename,&
& 'already exists. Not overwriting'
return
endif
!> get date to put into metadata in manifest file "fpm.toml"
call date_and_time(DATE=date)
table = toml_table()
Expand Down

0 comments on commit fed8635

Please sign in to comment.