NiklasRosenstein / flux-ci

Flux is your own private & lightweight CI server.
MIT License
26 stars 10 forks source link

Added simple repo-ping check on repository create/edit. #36

Closed tvrzna closed 6 years ago

tvrzna commented 6 years ago

Added simple checking, if Clone URL is working. It is checked by 'git ls-remote --exit-code' command called by AJAX request on blur of Clone URL input.

If git command returns 0, it returns message "ok" and HTTP code 200, otherwise it returns "fail" with HTTP code 404.

NiklasRosenstein commented 6 years ago

Looks good, thanks!