gitsync: Fix output redirection order
gitsync: More consistent function order