Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add git protocol to URL for Ansible repo #1557

Merged
merged 2 commits into from
Jun 16, 2017

Conversation

ZitaNemeckova
Copy link
Contributor

Allow git protocol as valid input

Automate -> Ansible -> Repositories -> Add/Edit Repository -> use URL with git protocol in URL field

Before:
Error message
After:
No error

https://bugzilla.redhat.com/show_bug.cgi?id=1452584

@miq-bot add_label automation/ansible, bug, fine/yes, blocker, wip

Allow git protocol as valid input
@miq-bot miq-bot changed the title Add git protocol to URL for Ansible repo [WIP] Add git protocol to URL for Ansible repo Jun 16, 2017
@ZitaNemeckova ZitaNemeckova force-pushed the add_git_url branch 2 times, most recently from 458fd4b to 5a86c12 Compare June 16, 2017 14:17
@miq-bot
Copy link
Member

miq-bot commented Jun 16, 2017

Checked commits ZitaNemeckova/manageiq-ui-classic@dac0a63~...68a176d with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks fine. 🏆

@ZitaNemeckova
Copy link
Contributor Author

@miq-bot remove_label wip

@miq-bot miq-bot changed the title [WIP] Add git protocol to URL for Ansible repo Add git protocol to URL for Ansible repo Jun 16, 2017
@miq-bot miq-bot removed the wip label Jun 16, 2017
@himdel
Copy link
Contributor

himdel commented Jun 16, 2017

So.. looks like I can now use both http urls like https://github.com/ManageIQ/manageiq.git and ssh like [email protected]:ManageIQ/manageiq.git. Tested that Ansible actually seems to sucessfully add such an url 👍.

This does not validate all the possible ways to specify a git url, but does seem to handle the most common one.

Supported:

[email protected]:ManageIQ/manageiq.git
foo.bar@host:
[email protected]:/absolute/path

Valid but not supported:

host:path (makes sense to catch, since the username would be essentially random)
git+https://github.com/ManageIQ/manageiq.git (but you can just skip the git+ bit)
git+ssh://[email protected]/ManageIQ/manageiq.git (this one might be nice if we want to support non-default ports)

@himdel
Copy link
Contributor

himdel commented Jun 16, 2017

@dclarizio Do we want to support non-standard ssh ports in Repository URLs or should we just merge as is?

@dclarizio
Copy link

@Fryguy can you chime in on @himdel's question above? Thx, Dan

@Fryguy
Copy link
Member

Fryguy commented Jun 16, 2017

Merge as is. We just do a passthrough to the embedded Tower, so whatever doesn't work is because Tower itself doesn't support that. If we want those features we can push down to Tower.

@dclarizio dclarizio self-assigned this Jun 16, 2017
@dclarizio dclarizio merged commit bcf147f into ManageIQ:master Jun 16, 2017
@dclarizio dclarizio added this to the Sprint 63 Ending Jun 19, 2017 milestone Jun 16, 2017
simaishi pushed a commit that referenced this pull request Jun 19, 2017
@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit 9fa86435653fe4b03ac330c9360495cf331dbff7
Author: Dan Clarizio <[email protected]>
Date:   Fri Jun 16 09:37:34 2017 -0700

    Merge pull request #1557 from ZitaNemeckova/add_git_url
    
    Add git protocol to URL for Ansible repo
    (cherry picked from commit bcf147f87d95145b17690fb3d051bc579e47ff61)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1462779

@ZitaNemeckova ZitaNemeckova deleted the add_git_url branch September 12, 2017 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants