libnetwork.lib: support for git repositories which don't have '.git' in their url

This commit is contained in:
Silvan Calarco 2015-09-26 15:00:22 +02:00
parent 564a5cb63b
commit 41731ef882

View File

@ -909,7 +909,7 @@ function git.download() {
notify.debug "$FUNCNAME: token_dirname = \"$token_dirname\""
notify.debug "$FUNCNAME: token_basename = \"$token_basename\""
local git_branch="${token_dirname/*.git\/}"
local git_branch="${token_dirname/*\/}"
notify.debug "$FUNCNAME: git_branch = \"$git_branch\""
git.create_tarball \