Skip to content

Commit 8e1aab4

Browse files
ieduerclaude
andcommitted
fix: use git rev-parse --verify for shallow clone compatibility
Without --verify, git rev-parse HEAD~1 returns the literal string "HEAD~1" in shallow clones instead of failing, bypassing the shallow clone detection. --verify ensures proper failure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f57e24d commit 8e1aab4

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

release_manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"schema_version": 1,
3-
"generated_at": "2026-03-16T06:24:31.517877+00:00",
4-
"git_head": "ce2c1cdd4e12c3ee1484bcf3b34c9813cc71f747",
3+
"generated_at": "2026-03-16T06:27:21.937313+00:00",
4+
"git_head": "f57e24de437a046f1444768f6b6d4e1162c32a70",
55
"frontend_version": "2026.03.15-r31",
66
"source_of_truth": {
77
"local_workspace": "authoritative",
@@ -151,8 +151,8 @@
151151
{
152152
"kind": "source",
153153
"logical_path": "scripts/deploy_vps.sh",
154-
"size": 16716,
155-
"sha256": "321a708e1a4afbcc46ac040057d975e26075e866c5b8e402a61998e09900b5f4"
154+
"size": 16725,
155+
"sha256": "0eeba4ffc1f66b8d49e2866f5969e78b5165e3a43deeeff2a0871a18257dba99"
156156
},
157157
{
158158
"kind": "source",

scripts/deploy_vps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ if [ -n "${manifest_git_head}" ]; then
226226
if [ "${manifest_git_head}" = "${actual_head}" ]; then
227227
echo "git HEAD guard: exact match ✓"
228228
else
229-
parent_head="$(git rev-parse HEAD~1 2>/dev/null || echo "")"
229+
parent_head="$(git rev-parse --verify HEAD~1 2>/dev/null || echo "")"
230230
if [ -n "${parent_head}" ] && [ "${manifest_git_head}" = "${parent_head}" ]; then
231231
echo "git HEAD guard: parent match ✓ (manifest is 1 commit behind HEAD, normal)"
232232
elif [ -z "${parent_head}" ]; then

0 commit comments

Comments
 (0)