#! /bin/sh
+if [ "x$1" = x-p ]; then
+ private="-p"
+ shift
+fi
+
if [ -z "$1" ]; then
branch="`git rev-parse --abbrev-ref HEAD`"
remote="`git config --get branch.$branch.remote`"
exit 1
fi
-exec git-open remote.$remote.url
+exec git-open $private remote.$remote.url