}
auto=false
-eval set -- `getopt -- eh "$@"`
+force=false
+eval set -- `getopt -- efh "$@"`
while [[ -n $1 ]] ; do
case $1 in
-h|--help) usage;;
-e) auto=true;;
+ -f) force=true;;
--) shift; break;;
-*) usage 1;;
*) break;
name=$(git config --get user.name)
email=$(git config --get user.email)
tmp=$(mktemp)
-request=$(PAGER= git request-pull ${commit} ${url} ${branch}) || exit 1
+if ! request=$(PAGER= git request-pull ${commit} ${url} ${branch}) ; then
+ ${force} || exit 1
+ request=$(echo "${request}" | sed "s:..BRANCH.NOT.VERIFIED..:${branch}:")
+fi
cat << EOF > ${tmp}
From: ${name} <${email}>
Date: $(date -R)