summaryrefslogtreecommitdiff
path: root/git-remote-testgit
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2012-11-28 23:11:07 +0100
committerJunio C Hamano <gitster@pobox.com>2012-11-29 12:18:45 -0800
commit1d3f9a30938e12b8ef7b807df7565b40b743d421 (patch)
treecbc8d156f808adb2430b224adafd7a2165a6c80f /git-remote-testgit
parent93b5cf9cd12a0b9491559429969b351daa3638a5 (diff)
downloadgit-1d3f9a30938e12b8ef7b807df7565b40b743d421.tar.gz
remote-testgit: implement the "done" feature manually
People who want to write their own remote-helper will find it more useful to see clearly how they are supposed to advertise and implement the "done" feature themselves. Right now we are relying on fast-export to do that by using the --use-done-feature argument. However, people writing their own remote-helper would probably not have such an option, as they would probably be writing the fast-export functionality themselves. It should now be clearer to them. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-remote-testgit')
-rwxr-xr-xgit-remote-testgit4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-remote-testgit b/git-remote-testgit
index 6fb8780677..b395c8de59 100755
--- a/git-remote-testgit
+++ b/git-remote-testgit
@@ -61,8 +61,10 @@ do
echo "feature import-marks=$gitmarks"
echo "feature export-marks=$gitmarks"
fi
- git fast-export --use-done-feature "${testgitmarks_args[@]}" $refs |
+ echo "feature done"
+ git fast-export "${testgitmarks_args[@]}" $refs |
sed -e "s#refs/heads/#${prefix}/heads/#g"
+ echo "done"
;;
export)
before=$(git for-each-ref --format='%(refname) %(objectname)')