mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-07-07 16:03:22 +02:00
remote-helpers: test: cleanup style
So it's more standardized between all the tests. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
12
test-hg.sh
12
test-hg.sh
@@ -21,11 +21,15 @@ if ! python -c 'import mercurial'; then
|
||||
fi
|
||||
|
||||
check () {
|
||||
(cd $1 &&
|
||||
(
|
||||
cd $1 &&
|
||||
git log --format='%s' -1 &&
|
||||
git symbolic-ref HEAD) > actual &&
|
||||
(echo $2 &&
|
||||
echo "refs/heads/$3") > expected &&
|
||||
git symbolic-ref HEAD
|
||||
) > actual &&
|
||||
(
|
||||
echo $2 &&
|
||||
echo "refs/heads/$3"
|
||||
) > expected &&
|
||||
test_cmp expected actual
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user