This adds the abilty to automatically create a README when you create a project, initializing the repo at the same time, the the user can just git clone it directly.
hm we should use an actual tmp folder here rather than creating a tmp repo in the official git folder
@pingou where would you reccomend we use as the temp location for the non-bare repo to add the files?
There is a python module to generate temp folders, check pagure/lib/git.py for tempfile
pagure/lib/git.py
tempfile
Okay, updated it so it now uses the tempfile module to create the initial non-bare repo in the temp folder.
rebased
Tested locally, works fine :thumbsup: for me
Pull-Request has been merged by ryanlerch
This adds the abilty to automatically create a README
when you create a project, initializing the repo at
the same time, the the user can just git clone it
directly.