ctfcli icon indicating copy to clipboard operation
ctfcli copied to clipboard

Adding challenges through external repo fails

Open CyrilleFranchet opened this issue 3 years ago • 0 comments

Hi,

I may be wrong but it's not possible to add a git repo with ctf challenge add {repo_url} at first. This command relies on git subtree which is a shell script. this script calls ensure_clean to check the HEAD reference but our repo is empty at this point.

I would add a git commit --allow-empty -m "Project created" after the git init in main.py.

CyrilleFranchet avatar Dec 23 '21 17:12 CyrilleFranchet