Commit 82bfa826 authored by Vitaly Lipatov's avatar Vitaly Lipatov

gitask: add copy command

parent 0ee17688
...@@ -102,6 +102,22 @@ if [ "$1" = "quota" ] ; then ...@@ -102,6 +102,22 @@ if [ "$1" = "quota" ] ; then
exit exit
fi fi
if [ "$1" = "copy" ] ; then
shift
PACKAGE="$1"
shift
shift # to
TARGET="$1"
shift
FROMSTR=''
[ "$1" = "from" ] && FROMSTR="$1 $2"
docmd ssh $GEARHOST task new $TARGET
TASK="$(get_last)"
docmd ssh $GEARHOST task add $TASK copy $PACKAGE $FROMSTR
docmd ssh $GEARHOST task run $TASK
exit
fi
if [ "$1" = "commit" ] ; then if [ "$1" = "commit" ] ; then
shift shift
COMMIT='' COMMIT=''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment