git: upload-bundle: add command
parent
a4221f0e66
commit
cbe14ea0a8
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -o errexit
|
||||
if [ $# != 2 ]; then >&2 echo 'Arguments: <source.bundle> <remote url>'; exit 1; fi
|
||||
tmp_dir="$(mktemp --directory)"
|
||||
trap 'rm --force --recursive "$tmp_dir"' EXIT
|
||||
git clone --mirror "$1" "$tmp_dir"
|
||||
git -C "$tmp_dir" push --mirror "$2"
|
Loading…
Reference in New Issue