remote-testgit: implement the "done" feature manually
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 28 Nov 2012 22:11:07 +0000 (23:11 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Nov 2012 20:18:45 +0000 (12:18 -0800)
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>
git-remote-testgit

index 6fb878067733101ec6822105e752bc8633f92e5e..b395c8de59c33768f1a957248447d162bda8ef94 100755 (executable)
@@ -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)')