Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/2] refs_from_alternate: helper to use refs from alternates

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

Johannes Sixt [off-list ref] writes:
quoted hunk
Can we have this without using dc? (We don't have it on Windows.)
diff --git a/t/t5501-fetch-push-alternates.sh 
b/t/t5501-fetch-push-alternates.sh
index 564ef7c..eb844cf 100755
--- a/t/t5501-fetch-push-alternates.sh
+++ b/t/t5501-fetch-push-alternates.sh
@@ -4,13 +4,11 @@ test_description='fetch/push involving alternates'
 . ./test-lib.sh
 
 count_objects () {
+	echo $(( $(
 		git count-objects -v |
 		sed -n -e 's/^count: \(.*\)/\1 +/p' \
+		    -e 's/^in-pack: \(.*\)/\1/p'
+		) ))
 }
What does that do when there are only loose objects without packed ones?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help