-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow passing user and branch to downstream #22
Conversation
You're welcome! duck :)
Sadly, no. I've wished for that myself, too. |
ci-support.sh
Outdated
url="https://github.com/$user_name/$proj_name.git" | ||
if [[ "$proj_name" = "mirgecom" ]]; then | ||
git clone "https://github.com/illinois-ceesd/$proj_name.git" | ||
default_url="https://github.com/illinois-ceesd/$proj_name.git" | ||
else | ||
git clone "https://github.com/inducer/$proj_name.git" | ||
default_url="https://github.com/inducer/$proj_name.git" | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. I know what was here before wasn't beautiful, but this logic seems like one step too far. I also know that I'm more likely to say this because it's not me committing the crime.
Realistically, I think the better answer is to permit passing in a pip
-style git URL: git+https://...@branchname
. That ought to be easy enough to pick apart?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not easy at all! Bash string slicing and dicing is horrible 😨
360fda1
to
d514ccc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! (And 🎉 much nicer! Thanks!) Let's see how it does in inducer/pymbolic#74, and if that comes back clean, then it's good to go in.
Yep! Seems to be working, the failures this far are from the EDIT: The |
Thx! |
Hacked this in here to be able to use (see inducer/pymbolic#74)
and have it pick up another repo/branch. Any way to test that this doesn't break the world? (Tried it locally and it was nice enough to rewrite my
gitconfig
, but it did clone things correctly)Suggestions for handling this more gracefully very welcome!