Skip to content

Commit 9db4b01

Browse files
committed
fixup! feat: output list of all branches to metadata
1 parent 7585024 commit 9db4b01

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

assets/in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,8 @@ git log -1 --format=%cd --date=${timestamp_format} > .git/commit_timestamp
312312
echo "$(git describe ${describe_ref_options})" > .git/describe_ref
313313

314314
if [ "${all_branches,,}" == "true" ]; then
315-
echo $all_branches > .git/all_branches
315+
git for-each-ref --format='%(refname:lstrip=3)' refs/remotes/ \
316+
| jq --raw-input --slurp --compact-output 'split("\n")[:-1]' > .git/all_branches.json
316317
fi
317318

318319

0 commit comments

Comments
 (0)