Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH v2 4/4] buitin-status: Add tests for submodule summary

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:22

Possibly related (same subject, not in this thread)

Johannes Sixt [off-list ref] writes:
Ping Yin schrieb:
quoted
+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)
'
"git rev-parse --short=12 --verify HEAD" or whatever minimum length you
would want would free you from an ugly "pipe to cut".
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help