]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
extract repo from --remote
authorMark Andrews <marka@isc.org>
Mon, 29 Oct 2012 02:53:48 +0000 (02:53 +0000)
committerMark Andrews <marka@isc.org>
Mon, 29 Oct 2012 02:55:20 +0000 (02:55 +0000)
util/kit.sh

index da19b8946ee544c973e0dfc2098e0464870f9a17..1d4f27a2fae8aee347d851827af9ae30b91aceb8 100644 (file)
@@ -37,6 +37,7 @@ case "${1:-}" in
        ;;
 esac
 
+repo=`expr "X${remote}X" : '^X--remote=\(.*\)X$'`
 
 case $# in
     3)
@@ -122,7 +123,7 @@ test ! -d $topdir || {
 mkdir $topdir || exit 1
 
 git archive --format=tar $remote $tag | ( cd $topdir; tar xf -)
-shorthash=`git ls-remote $remote $tag | cut -c1-8`
+shorthash=`git ls-remote $repo $tag | cut -c1-8`
 
 cd $topdir || exit 1