Commit 6276dfd4 authored by Hinrikus Wolf's avatar Hinrikus Wolf

add parameter for checking out a specific git branch

parent fcbcac05
......@@ -12,10 +12,16 @@ function get_sources() {
# $1: source package name
# $2: git repository
# $3: (optional) specifc branch or tag
function get_git_sources() {
git clone $2 $1
cd $1
if [[ ! -z $3 ]] # checks if $3 is not empty
then
git checkout $3
else
git tag --sort "version:refname" -l | tail -n1 | xargs git checkout
fi
}
# $1: patch directory name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment