libnetwork.lib: git source: add support for branch names containing slashes

This commit is contained in:
Silvan Calarco 2013-05-05 21:25:27 +02:00
parent 166e4ad848
commit 927ad3a5f7

View File

@ -909,14 +909,14 @@ function git.download() {
notify.debug "$FUNCNAME: token_dirname = \"$token_dirname\""
notify.debug "$FUNCNAME: token_basename = \"$token_basename\""
local git_branch="${token_dirname##*/}"
local git_branch="${token_dirname/*.git\/}"
notify.debug "$FUNCNAME: git_branch = \"$git_branch\""
git.create_tarball \
--pck-version "$pck_version" \
--destdir "$destdir" \
--preserve-dot-git "0" --git-branch "$git_branch" \
"${token_dirname%/*}"
"${token_dirname/.git*}"
}
# function git.create_tarball