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 script to pull wodin site #196

Merged
merged 5 commits into from
Oct 24, 2023
Merged

add script to pull wodin site #196

merged 5 commits into from
Oct 24, 2023

Conversation

M-Kusumgar
Copy link
Collaborator

@M-Kusumgar M-Kusumgar commented Oct 19, 2023

This is just a script I am adding for the wodin deploy tool to let it pull the wodin config from github before starting wodin in a container

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

see 155 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@M-Kusumgar M-Kusumgar marked this pull request as ready for review October 20, 2023 17:18
Copy link

@r-ash r-ash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! See comment but you'll know better the context about whether that is appropriate or not

set -ex
HERE=$(dirname "$0")

git clone --branch $1 $2 $3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use --single-branch here maybe too?

Copy link
Collaborator Author

@M-Kusumgar M-Kusumgar Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ive decided to use --depth 1 instead, apparently this is better for bandwidth, see:
https://stackoverflow.com/questions/1778088/how-do-i-clone-a-single-branch-in-git?noredirect=1&lq=1

this was actually noticeably quicker on my machine, would definitely recommend --depth 1 if you just need to look at one branch

Copy link
Contributor

@EmmaLRussell EmmaLRussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, think you can give shift an argument rather than needing to call it three times: https://www.computerhope.com/unix/bash/shift.htm

@M-Kusumgar M-Kusumgar merged commit e13e441 into main Oct 24, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants