mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Merge branch 'fix-kit' into 'master'
use the correct repository, and get archive by tag not hash See merge request isc-projects/bind9!304
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
# (e.g., sh kit.sh snapshot /tmp/bindkit
|
# (e.g., sh kit.sh snapshot /tmp/bindkit
|
||||||
#
|
#
|
||||||
|
|
||||||
remote=--remote=repo.isc.org:/proj/git/prod/bind9.git
|
remote=--remote=git@gitlab.isc.org:isc-projects/bind9.git
|
||||||
|
|
||||||
case "${1:-}" in
|
case "${1:-}" in
|
||||||
--remote=*)
|
--remote=*)
|
||||||
@@ -84,7 +84,7 @@ mkdir $verdir || {
|
|||||||
echo "$0: could not create directory $tmpdir/$verdir" >&2
|
echo "$0: could not create directory $tmpdir/$verdir" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
git archive --format=tar $remote $hash version | ( cd $verdir ;tar xf - )
|
git archive --format=tar $remote $tag version | ( cd $verdir ;tar xf - )
|
||||||
test -f $verdir/version || {
|
test -f $verdir/version || {
|
||||||
echo "$0: could not get 'version' file" >&2
|
echo "$0: could not get 'version' file" >&2
|
||||||
exit 1
|
exit 1
|
||||||
@@ -113,7 +113,7 @@ test ! -d $topdir || {
|
|||||||
|
|
||||||
mkdir $topdir || exit 1
|
mkdir $topdir || exit 1
|
||||||
|
|
||||||
git archive --format=tar $remote $hash | ( cd $topdir; tar xf -)
|
git archive --format=tar $remote $tag | ( cd $topdir; tar xf -)
|
||||||
|
|
||||||
cd $topdir || exit 1
|
cd $topdir || exit 1
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user