CTFd / CTFd/ctfcli

Adding challenges through external repo fails

Open
#79 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
215
Forks
95
Avg merge
2h 17m
Merged PRs (30d)
1

Description

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](https://github.com/CTFd/ctfcli/blob/master/ctfcli/__main__.py).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.