extract repo from --remote

This commit is contained in:
Mark Andrews 2012-10-29 02:53:48 +00:00
parent 467a823e57
commit 978c8d59cf

View 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