summaryrefslogtreecommitdiff
path: root/contrib/remote-helpers/test-hg.sh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-24 21:29:20 -0500
committerJunio C Hamano <gitster@pobox.com>2013-05-28 07:59:19 -0700
commitdde67d794c2600fee74aef289332257742f28cfa (patch)
tree2a8303dbad95af4a865a5d25b56cd7a57fc68785 /contrib/remote-helpers/test-hg.sh
parent4080ac81e5435ce0d1acbe08916190a7513aae2b (diff)
downloadgit-dde67d794c2600fee74aef289332257742f28cfa.tar.gz
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>
Diffstat (limited to 'contrib/remote-helpers/test-hg.sh')
-rwxr-xr-xcontrib/remote-helpers/test-hg.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh
index 7419b52f4f..e278dfde0f 100755
--- a/contrib/remote-helpers/test-hg.sh
+++ b/contrib/remote-helpers/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
}