Re: [PATCH v2 4/4] buitin-status: Add tests for submodule summary
From: Johannes Sixt <hidden> Date: 2016-06-15 22:44:22
Ping Yin schrieb:
+cd sm &&
+head=$(git rev-parse --verify HEAD | cut -c1-7) &&
+cd ..
I think you can make these three lines into:
test_expect_success 'get short SHA1 of submodule HEAD' '
head=$(cd sm && git rev-parse --verify HEAD | cut -c1-7)
'
(not tested, though).