clavarium 0.2.411-next.1 → 0.2.413-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deploy/git-read +16 -4
- package/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
package/deploy/git-read
CHANGED
|
@@ -91,7 +91,7 @@ format=$(g rev-parse --show-object-format) || failed $? "GIT COULD NOT OPEN THE
|
|
|
91
91
|
[ "$format" = "sha1" ] || { echo "NOT SHA-1" >&2; exit 66; }
|
|
92
92
|
|
|
93
93
|
refs=$(g for-each-ref --format='%(objectname) %(refname)' refs/heads/) || failed $? "GIT COULD NOT LIST THE BRANCHES"
|
|
94
|
-
listed=$(printf '%s\n' "$refs" | sed -n 's|^[0-9a-f]\{40\} ||p'
|
|
94
|
+
listed=$(printf '%s\n' "$refs" | sed -n 's|^[0-9a-f]\{40\} ||p')
|
|
95
95
|
# A file or folder whose name starts with a dot is no ref, for git either: no
|
|
96
96
|
# ref name may have a part that starts with one (check-ref-format), so git
|
|
97
97
|
# can never make it and never lists it. Such files do appear on their own:
|
|
@@ -102,8 +102,20 @@ listed=$(printf '%s\n' "$refs" | sed -n 's|^[0-9a-f]\{40\} ||p' | sort -u)
|
|
|
102
102
|
on_disk=$( {
|
|
103
103
|
[ -d .git/refs/heads ] && find -L .git/refs/heads -mindepth 1 -name '.*' -prune -o -type f ! -name '*.lock' -printf 'refs/heads/%P\n'
|
|
104
104
|
[ -f .git/packed-refs ] && sed -n 's|^[0-9a-f]\{40\} \(refs/heads/.*\)$|\1|p' .git/packed-refs
|
|
105
|
-
}
|
|
106
|
-
|
|
105
|
+
})
|
|
106
|
+
# The two lists compared as sets, in the shell alone. No sort, no cut, nothing
|
|
107
|
+
# of coreutils here: on a host whose coreutils are the Rust ones (uutils),
|
|
108
|
+
# sort crashed inside this sandbox ("Aborted (core dumped)"), the list on disk
|
|
109
|
+
# came out empty, and healthy repositories were refused as "broken or
|
|
110
|
+
# changing". Every line of each list must be a line of the other.
|
|
111
|
+
nl='
|
|
112
|
+
'
|
|
113
|
+
in_list() { case "$nl$2$nl" in *"$nl$1$nl"*) return 0 ;; esac; return 1; }
|
|
114
|
+
same=yes; saved=$IFS; IFS=$nl; set -f
|
|
115
|
+
for x in $listed; do in_list "$x" "$on_disk" || same=no; done
|
|
116
|
+
for x in $on_disk; do in_list "$x" "$listed" || same=no; done
|
|
117
|
+
set +f; IFS=$saved
|
|
118
|
+
[ "$same" = yes ] || { echo "BROKEN OR CHANGING REFS" >&2; exit 66; }
|
|
107
119
|
[ "$(printf '%s\n' "$refs" | grep -c .)" -le 1000 ] || { echo "MORE THAN 1000 BRANCHES" >&2; exit 66; }
|
|
108
120
|
|
|
109
121
|
if [ -z "$refs" ]; then
|
|
@@ -119,7 +131,7 @@ have=""
|
|
|
119
131
|
if [ "$MODE" = "--have" ]; then
|
|
120
132
|
have=$(printf '%s\n' "$@" | g cat-file --batch-check='%(objectname) %(objecttype)' | sed -n 's/^\([0-9a-f]\{40\}\) commit$/^\1/p')
|
|
121
133
|
fi
|
|
122
|
-
{ printf '%s\n' "$refs" |
|
|
134
|
+
{ printf '%s\n' "$refs" | sed -n 's/^\([0-9a-f]\{40\}\) .*/\1/p'; [ -z "$have" ] || printf '%s\n' "$have"; } | g pack-objects --stdout --revs --delta-base-offset -q
|
|
123
135
|
rc=$?
|
|
124
136
|
[ "$rc" -eq 0 ] && exit 0
|
|
125
137
|
failed "$rc" "GIT COULD NOT PACK THE BRANCHES"
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.413-next.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.413-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clavarium-binder": "0.1.62-next.1",
|
|
15
15
|
"clavarium-docket": "0.1.2-next.2",
|
|
16
16
|
"clavarium-parley": "0.17.91-next.1",
|
|
17
|
-
"clavarium-tether": "0.1.0-next.
|
|
17
|
+
"clavarium-tether": "0.1.0-next.67",
|
|
18
18
|
"mammoth": "1.13.0",
|
|
19
19
|
"mermaid": "11.17.2",
|
|
20
20
|
"node-pty": "^1.1.0",
|
|
@@ -800,9 +800,9 @@
|
|
|
800
800
|
}
|
|
801
801
|
},
|
|
802
802
|
"node_modules/clavarium-tether": {
|
|
803
|
-
"version": "0.1.0-next.
|
|
804
|
-
"resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.
|
|
805
|
-
"integrity": "sha512-
|
|
803
|
+
"version": "0.1.0-next.67",
|
|
804
|
+
"resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.67.tgz",
|
|
805
|
+
"integrity": "sha512-lb1C+cqZhLi+reUyiZtZDHjbxl1WUTDu23bQ3YR4X1rNJAST/8gJwpBOVNKok9hlfLo5zDVIYL4xL5jhMuHaWQ==",
|
|
806
806
|
"license": "MIT",
|
|
807
807
|
"bin": {
|
|
808
808
|
"tether": "bin/cli.mjs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.413-next.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"clavarium-binder": "0.1.62-next.1",
|
|
49
49
|
"clavarium-docket": "0.1.2-next.2",
|
|
50
50
|
"clavarium-parley": "0.17.91-next.1",
|
|
51
|
-
"clavarium-tether": "0.1.0-next.
|
|
51
|
+
"clavarium-tether": "0.1.0-next.67",
|
|
52
52
|
"mammoth": "1.13.0",
|
|
53
53
|
"mermaid": "11.17.2",
|
|
54
54
|
"node-pty": "^1.1.0",
|