From: Richard Hansen Date: Sun, 27 Oct 2013 21:16:28 GMT Subject: [PATCH v4 12/10] git-remote-testgit: support the new 'force' option Message-ID: <1382908589-7000-1-git-send-email-rhansen@bbn.com> In-Reply-To: <1382857521-7005-1-git-send-email-felipe.contreras@gmail.com> Signed-off-by: Richard Hansen --- git-remote-testgit.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/git-remote-testgit.sh b/git-remote-testgit.sh index 6d2f282..80546c1 100755 --- a/git-remote-testgit.sh +++ b/git-remote-testgit.sh @@ -6,6 +6,7 @@ url=$2 dir="$GIT_DIR/testgit/$alias" prefix="refs/testgit/$alias" +forcearg= default_refspec="refs/heads/*:${prefix}/heads/*" @@ -39,6 +40,7 @@ do fi test -n "$GIT_REMOTE_TESTGIT_SIGNED_TAGS" && echo "signed-tags" test -n "$GIT_REMOTE_TESTGIT_NO_PRIVATE_UPDATE" && echo "no-private-update" + echo 'option' echo ;; list) @@ -93,6 +95,7 @@ do before=$(git for-each-ref --format=' %(refname) %(objectname) ') git fast-import \ + ${forcearg} \ ${testgitmarks:+"--import-marks=$testgitmarks"} \ ${testgitmarks:+"--export-marks=$testgitmarks"} \ --quiet @@ -115,6 +118,21 @@ do echo ;; + option\ *) + read cmd opt val <