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 checkout all available branches #120

Open
bastelfreak opened this issue May 25, 2016 · 1 comment
Open

add script to checkout all available branches #120

bastelfreak opened this issue May 25, 2016 · 1 comment

Comments

@bastelfreak
Copy link
Member

to make development easier we should add a script that is able to check for all remote branches and make a checkout for them in seperate subdirectories. This allows us to test several things in parallel. What needs to be done:
git rev-parse &>/dev/null to check if we are in a git repo
git remote to check if a remote is configured
git fetch -q -p --all 2>&1 to fetch all branches from remote + delete old local ones
git gc --auto for garbadge collection
now we need to iterate add git branch and check them all out in subrepos


In the future we can also add another script to autogenerate PXE entries for each branch

@bastelfreak
Copy link
Member Author

this is based on a script from @Bluewind https://paste.xinu.at/m-LDhh/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant