virtapi / installimage

bash scripts for deploying every linux system
Other
37 stars 14 forks source link

add script to checkout all available branches #120

Open bastelfreak opened 8 years ago

bastelfreak commented 8 years ago

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 commented 8 years ago

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