Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t1406: make hash-size independent
author
brian m. carlson
<sandals@crustytoothpaste.net>
Thu, 13 Sep 2018 05:17:40 +0000
(
05:17
+0000)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 17 Sep 2018 15:10:32 +0000
(08:10 -0700)
Instead of hard-coding a 40-based constant, split the output of
for-each-ref and for-each-reflog by field.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1406-submodule-ref-store.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
63477b3
)
diff --git
a/t/t1406-submodule-ref-store.sh
b/t/t1406-submodule-ref-store.sh
index e093782cc37c495a122eb8676797b1988b828c29..d199d872fb1996922a0a77058955c105aef4377c 100755
(executable)
--- a/
t/t1406-submodule-ref-store.sh
+++ b/
t/t1406-submodule-ref-store.sh
@@
-39,7
+39,7
@@
test_expect_success 'rename_refs() not allowed' '
'
test_expect_success 'for_each_ref(refs/heads/)' '
'
test_expect_success 'for_each_ref(refs/heads/)' '
- $RUN for-each-ref refs/heads/ | cut -
c 4
2- >actual &&
+ $RUN for-each-ref refs/heads/ | cut -
d" " -f
2- >actual &&
cat >expected <<-\EOF &&
master 0x0
new-master 0x0
cat >expected <<-\EOF &&
master 0x0
new-master 0x0
@@
-48,7
+48,7
@@
test_expect_success 'for_each_ref(refs/heads/)' '
'
test_expect_success 'for_each_ref() is sorted' '
'
test_expect_success 'for_each_ref() is sorted' '
- $RUN for-each-ref refs/heads/ | cut -
c 4
2- >actual &&
+ $RUN for-each-ref refs/heads/ | cut -
d" " -f
2- >actual &&
sort actual > expected &&
test_cmp expected actual
'
sort actual > expected &&
test_cmp expected actual
'
@@
-65,7
+65,7
@@
test_expect_success 'verify_ref(new-master)' '
'
test_expect_success 'for_each_reflog()' '
'
test_expect_success 'for_each_reflog()' '
- $RUN for-each-reflog | sort | cut -
c 4
2- >actual &&
+ $RUN for-each-reflog | sort | cut -
d" " -f
2- >actual &&
cat >expected <<-\EOF &&
HEAD 0x1
refs/heads/master 0x0
cat >expected <<-\EOF &&
HEAD 0x1
refs/heads/master 0x0