diff options
author | John S. Urban <urbanjost@comcast.net> | 2021-08-08 11:26:57 -0400 |
---|---|---|
committer | John S. Urban <urbanjost@comcast.net> | 2021-08-08 11:26:57 -0400 |
commit | d6f5bf20b2245564ba4a851d1f4ea9b19ba579b6 (patch) | |
tree | 9e4d0ef8240a5f1e8bc7d54fec4be5485541f197 | |
parent | 1715c04c7e662599d20d2a43e8cc1e9cfbd2fa54 (diff) | |
download | fpm-d6f5bf20b2245564ba4a851d1f4ea9b19ba579b6.tar.gz fpm-d6f5bf20b2245564ba4a851d1f4ea9b19ba579b6.zip |
still call "git init" even if fpm.toml exists in backfill
-rw-r--r-- | src/fpm/cmd/new.f90 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fpm/cmd/new.f90 b/src/fpm/cmd/new.f90 index 81cf62f..abc1d67 100644 --- a/src/fpm/cmd/new.f90 +++ b/src/fpm/cmd/new.f90 @@ -98,9 +98,6 @@ character(len=:,kind=tfc),allocatable :: littlefile(:) ! like realpath() or getcwd(). bname=basename(settings%name) - ! create NAME/.gitignore file - call warnwrite(join_path(settings%name, '.gitignore'), ['build/*']) - littlefile=[character(len=80) :: '# '//bname, 'My cool new project!'] ! create NAME/README.md @@ -592,6 +589,11 @@ character(len=*),intent(in) :: 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() |