remote-testgit: report success after an import
Doesn't make a difference for the tests, but it does for the ones seeking reference. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
ee10fbf90c
commit
93b5cf9cd1
@ -65,7 +65,20 @@ do
|
|||||||
sed -e "s#refs/heads/#${prefix}/heads/#g"
|
sed -e "s#refs/heads/#${prefix}/heads/#g"
|
||||||
;;
|
;;
|
||||||
export)
|
export)
|
||||||
|
before=$(git for-each-ref --format='%(refname) %(objectname)')
|
||||||
|
|
||||||
git fast-import "${testgitmarks_args[@]}" --quiet
|
git fast-import "${testgitmarks_args[@]}" --quiet
|
||||||
|
|
||||||
|
after=$(git for-each-ref --format='%(refname) %(objectname)')
|
||||||
|
|
||||||
|
# figure out which refs were updated
|
||||||
|
join -e 0 -o '0 1.2 2.2' -a 2 <(echo "$before") <(echo "$after") |
|
||||||
|
while read ref a b
|
||||||
|
do
|
||||||
|
test $a == $b && continue
|
||||||
|
echo "ok $ref"
|
||||||
|
done
|
||||||
|
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
'')
|
'')
|
||||||
|
Reference in New Issue
Block a user