do not mess with klipper url, allow access via ssh or sites like gitlab, alternate to #452 #465
Reference in New Issue
Block a user
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
like #452, which says
"This addresses #398 as well as including the functionality from the open PR #323 regarding ssh cloning (since, they both touch the same line of code, in effectively the same way)"
the git url for klipper can be on other schemes like
ssh://orhttps://gitlab.Additionally, if there is a need to use
http://e.g. because of firewall rules etc. then the current code would not allow this, because it removes thehttp://github.com/and addshttps://github.com/.Actually, I would just remove the code that messes with the url.
I only inserted the addition of
https://github.com/for compatibility in case the configuration does not contain a full url.Not sure why the
.gitwas removed but not added afterwards. The official github clone url would have a.gitat the end.Also, in clone_klipper the sed command uses the
i-flag, but not inswitch_clipper_repo_menu.Not messing with the url would remove the duplicate code of the same thing.
Alternatively, the url could be normalized in a central function, e.g.
normalize_git_url.ok, I see the rewrite in python... :-)
Pull request closed