#1000 Add the ability to add a README when creating a project
Merged by ryanlerch. Opened by ryanlerch.
ryanlerch/pagure create_readme  into  master

Download 1000.patch

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

Okay, updated it so it now uses the tempfile module to create the initial non-bare repo in the temp folder.

rebased

rebased

Tested locally, works fine :thumbsup: for me

Pull-Request has been merged by ryanlerch

Metadata