#!/bin/sh

. git-sh-setup
host=$(git config invirt.buildhost)

remctl "$host" build "$1" "$(cd "$GIT_WORK_TREE" && dpkg-parsechangelog | sed -n "s/Source: //p")" "${2:-$(git rev-parse HEAD)}"
