#!/bin/bash
task_id=$1
subtask_id=$2

tag=`git describe --abbrev=0 `
repo=`git config --get remote.origin.url | sed 's!^.*:packages/!!'`

echo "tag: $tag"
echo "repo: $repo"

git.alt task add "$task_id" "$subtask_id" repo "$repo" "$tag" \
    2>&1 \
    | csed '/not\ found/ p red,bold'

exit $?
